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§
source§impl Clone for SetTimeFlags
impl Clone for SetTimeFlags
source§fn clone(&self) -> SetTimeFlags
fn clone(&self) -> SetTimeFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetTimeFlags
impl Debug for SetTimeFlags
source§impl PartialEq for SetTimeFlags
impl PartialEq for SetTimeFlags
source§fn eq(&self, other: &SetTimeFlags) -> bool
fn eq(&self, other: &SetTimeFlags) -> bool
self
and other
values to be equal, and is used
by ==
.