pub enum TimerReadRes<T: Sized + Debug + Display + Clone + Eq + PartialEq> {
Ok(T),
Cancelled,
WouldBlock,
}Expand description
A timer FD read operation result.
Variants§
Ok(T)
Read successfull.
Cancelled
TFD_TIMER_ABSTIME
Marks this timer as cancelable if the real-time clock under‐ goes a discontinuous change (settimeofday(2), clock_settime(2), or similar). When such changes occur, a current or future read(2) from the file descriptor will fail with the error ECANCELED.
WouldBlock
EAGAIN If FD is nonblocking then this will be returned.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Sized + Debug + Display + Clone + Eq + PartialEq> Clone for TimerReadRes<T>
impl<T: Clone + Sized + Debug + Display + Clone + Eq + PartialEq> Clone for TimerReadRes<T>
Source§fn clone(&self) -> TimerReadRes<T>
fn clone(&self) -> TimerReadRes<T>
Returns a duplicate 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<T: PartialEq + Sized + Debug + Display + Clone + Eq + PartialEq> PartialEq for TimerReadRes<T>
impl<T: PartialEq + Sized + Debug + Display + Clone + Eq + PartialEq> PartialEq for TimerReadRes<T>
impl<T: Eq + Sized + Debug + Display + Clone + Eq + PartialEq> Eq for TimerReadRes<T>
impl<T: Sized + Debug + Display + Clone + Eq + PartialEq> StructuralPartialEq for TimerReadRes<T>
Auto Trait Implementations§
impl<T> Freeze for TimerReadRes<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimerReadRes<T>where
T: RefUnwindSafe,
impl<T> Send for TimerReadRes<T>where
T: Send,
impl<T> Sync for TimerReadRes<T>where
T: Sync,
impl<T> Unpin for TimerReadRes<T>where
T: Unpin,
impl<T> UnwindSafe for TimerReadRes<T>where
T: UnwindSafe,
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