Enum timerfd::SetTimeFlags [] [src]

pub enum SetTimeFlags {
    Default,
    Abstime,
    TimerCancelOnSet,
}

Variants

Flags to timerfd_settime(2).

The default is zero, i. e. all bits unset.

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.

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 TimerCancelOnSetimpliesAbstime`.

Trait Implementations

impl Debug for SetTimeFlags
[src]

Formats the value using the given formatter.

impl Clone for SetTimeFlags
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SetTimeFlags
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SetTimeFlags
[src]