Enum timerfd::SetTimeFlags
source · [−]pub enum SetTimeFlags {
Default,
Abstime,
TimerCancelOnSet,
}Variants
Default
Flags to timerfd_settime(2).
The default is zero, i. e. all bits unset.
Abstime
Interpret new_value.it_value as an absolute value on the timer’s clock. The timer will expire when the value of the timer’s clock reaches the value specified in new_value.it_value.
TimerCancelOnSet
If this flag is specified along with TFD_TIMER_ABSTIME and the clock for this timer is CLOCK_REALTIME or CLOCK_REALTIME_ALARM, then mark this timer as cancelable if the real-time clock undergoes 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.
TFD_TIMER_CANCEL_ON_SET is useless without TFD_TIMER_ABSTIME set, cf. fs/timerfd.c.
Thus TimerCancelOnSet`` implies Abstime`.
Trait Implementations
sourceimpl Clone for SetTimeFlags
impl Clone for SetTimeFlags
sourcefn clone(&self) -> SetTimeFlags
fn clone(&self) -> SetTimeFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SetTimeFlags
impl Debug for SetTimeFlags
sourceimpl PartialEq<SetTimeFlags> for SetTimeFlags
impl PartialEq<SetTimeFlags> for SetTimeFlags
impl Eq for SetTimeFlags
impl StructuralEq for SetTimeFlags
impl StructuralPartialEq for SetTimeFlags
Auto Trait Implementations
impl RefUnwindSafe for SetTimeFlags
impl Send for SetTimeFlags
impl Sync for SetTimeFlags
impl Unpin for SetTimeFlags
impl UnwindSafe for SetTimeFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more