Enum timerfd::SetTimeFlags
[−]
[src]
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
impl Debug for SetTimeFlags
[src]
impl Clone for SetTimeFlags
[src]
fn clone(&self) -> SetTimeFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for SetTimeFlags
[src]
fn eq(&self, __arg_0: &SetTimeFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.