Enum timerfd::TimerState
[−]
[src]
pub enum TimerState { Disarmed, Oneshot(Duration), Periodic { current: Duration, interval: Duration, }, }
Holds the state of a TimerFd
.
Variants
Disarmed
The timer is disarmed and will not fire.
Oneshot(Duration)
The timer will fire once after the specified duration and then disarm.
Periodic
The timer will fire once after current
and then
automatically rearm with interval
as its duration.
Fields of Periodic
current: Duration | |
interval: Duration |
Trait Implementations
impl From<itimerspec> for TimerState
[src]
fn from(its: itimerspec) -> TimerState
Performs the conversion.
impl Debug for TimerState
[src]
impl Clone for TimerState
[src]
fn clone(&self) -> TimerState
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 TimerState
[src]
fn eq(&self, __arg_0: &TimerState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TimerState) -> bool
This method tests for !=
.