Struct nix::sys::epoll::EpollTimeout
source · pub struct EpollTimeout(i32);
Expand description
PollTimeout argument for polling.
Tuple Fields§
§0: i32
Implementations§
source§impl PollTimeout
impl PollTimeout
sourcepub const NONE: Self = _
pub const NONE: Self = _
Blocks indefinitely.
Specifying a negative value in timeout means an infinite timeout.
sourcepub const ZERO: Self = _
pub const ZERO: Self = _
Returns immediately.
Specifying a timeout of zero causes poll() to return immediately, even if no file descriptors are ready.
sourcepub fn is_none(&self) -> bool
pub fn is_none(&self) -> bool
Returns if self
equals PollTimeout::NONE
.
sourcepub fn is_some(&self) -> bool
pub fn is_some(&self) -> bool
Returns if self
does not equal PollTimeout::NONE
.
Trait Implementations§
source§impl Clone for PollTimeout
impl Clone for PollTimeout
source§fn clone(&self) -> PollTimeout
fn clone(&self) -> PollTimeout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PollTimeout
impl Debug for PollTimeout
source§impl<T: Into<PollTimeout>> From<Option<T>> for PollTimeout
impl<T: Into<PollTimeout>> From<Option<T>> for PollTimeout
source§impl From<PollTimeout> for i128
impl From<PollTimeout> for i128
source§fn from(x: PollTimeout) -> Self
fn from(x: PollTimeout) -> Self
Converts to this type from the input type.
source§impl From<PollTimeout> for i32
impl From<PollTimeout> for i32
source§fn from(x: PollTimeout) -> Self
fn from(x: PollTimeout) -> Self
Converts to this type from the input type.
source§impl From<PollTimeout> for i64
impl From<PollTimeout> for i64
source§fn from(x: PollTimeout) -> Self
fn from(x: PollTimeout) -> Self
Converts to this type from the input type.
source§impl From<u16> for PollTimeout
impl From<u16> for PollTimeout
source§impl From<u8> for PollTimeout
impl From<u8> for PollTimeout
source§impl Ord for PollTimeout
impl Ord for PollTimeout
source§fn cmp(&self, other: &PollTimeout) -> Ordering
fn cmp(&self, other: &PollTimeout) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PollTimeout
impl PartialEq for PollTimeout
source§impl PartialOrd for PollTimeout
impl PartialOrd for PollTimeout
source§impl TryFrom<Duration> for PollTimeout
impl TryFrom<Duration> for PollTimeout
source§impl TryFrom<PollTimeout> for Duration
impl TryFrom<PollTimeout> for Duration
source§impl TryFrom<PollTimeout> for i16
impl TryFrom<PollTimeout> for i16
source§impl TryFrom<PollTimeout> for i8
impl TryFrom<PollTimeout> for i8
source§impl TryFrom<PollTimeout> for u128
impl TryFrom<PollTimeout> for u128
source§impl TryFrom<PollTimeout> for u16
impl TryFrom<PollTimeout> for u16
source§impl TryFrom<PollTimeout> for u32
impl TryFrom<PollTimeout> for u32
source§impl TryFrom<PollTimeout> for u64
impl TryFrom<PollTimeout> for u64
source§impl TryFrom<PollTimeout> for u8
impl TryFrom<PollTimeout> for u8
source§impl TryFrom<i128> for PollTimeout
impl TryFrom<i128> for PollTimeout
source§impl TryFrom<i16> for PollTimeout
impl TryFrom<i16> for PollTimeout
source§impl TryFrom<i32> for PollTimeout
impl TryFrom<i32> for PollTimeout
source§impl TryFrom<i64> for PollTimeout
impl TryFrom<i64> for PollTimeout
source§impl TryFrom<i8> for PollTimeout
impl TryFrom<i8> for PollTimeout
source§impl TryFrom<u128> for PollTimeout
impl TryFrom<u128> for PollTimeout
source§impl TryFrom<u32> for PollTimeout
impl TryFrom<u32> for PollTimeout
source§impl TryFrom<u64> for PollTimeout
impl TryFrom<u64> for PollTimeout
impl Copy for PollTimeout
impl Eq for PollTimeout
impl StructuralPartialEq for PollTimeout
Auto Trait Implementations§
impl Freeze for PollTimeout
impl RefUnwindSafe for PollTimeout
impl Send for PollTimeout
impl Sync for PollTimeout
impl Unpin for PollTimeout
impl UnwindSafe for PollTimeout
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)