Struct cec_linux::PollTimeout
source · pub struct PollTimeout(/* private fields */);
Available on crate feature
poll
only.Expand description
PollTimeout argument for polling.
Implementations§
source§impl PollTimeout
impl PollTimeout
sourcepub const NONE: PollTimeout = _
pub const NONE: PollTimeout = _
Blocks indefinitely.
Specifying a negative value in timeout means an infinite timeout.
sourcepub const ZERO: PollTimeout = _
pub const ZERO: PollTimeout = _
Returns immediately.
Specifying a timeout of zero causes poll() to return immediately, even if no file descriptors are ready.
sourcepub const MAX: PollTimeout = _
pub const MAX: PollTimeout = _
Blocks for at most i32::MAX
milliseconds.
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> From<Option<T>> for PollTimeoutwhere
T: Into<PollTimeout>,
impl<T> From<Option<T>> for PollTimeoutwhere
T: Into<PollTimeout>,
source§fn from(x: Option<T>) -> PollTimeout
fn from(x: Option<T>) -> PollTimeout
Converts to this type from the input type.
source§impl From<u16> for PollTimeout
impl From<u16> for PollTimeout
source§fn from(x: u16) -> PollTimeout
fn from(x: u16) -> PollTimeout
Converts to this type from the input type.
source§impl From<u8> for PollTimeout
impl From<u8> for PollTimeout
source§fn from(x: u8) -> PollTimeout
fn from(x: u8) -> PollTimeout
Converts to this type from the input type.
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§fn eq(&self, other: &PollTimeout) -> bool
fn eq(&self, other: &PollTimeout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PollTimeout
impl PartialOrd for PollTimeout
source§fn partial_cmp(&self, other: &PollTimeout) -> Option<Ordering>
fn partial_cmp(&self, other: &PollTimeout) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<Duration> for PollTimeout
impl TryFrom<Duration> for PollTimeout
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 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