Enum timerfd::TimerState [] [src]

pub enum TimerState {
    Disarmed,
    Oneshot(Duration),
    Periodic {
        current: Duration,
        interval: Duration,
    },
}

Holds the state of a TimerFd.

Variants

The timer is disarmed and will not fire.

The timer will fire once after the specified duration and then disarm.

The timer will fire once after current and then automatically rearm with interval as its duration.

Fields of Periodic

Trait Implementations

impl From<itimerspec> for TimerState
[src]

Performs the conversion.

impl Debug for TimerState
[src]

Formats the value using the given formatter.

impl Clone for TimerState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TimerState
[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 TimerState
[src]