Enum nix::sys::timerfd::Expiration
source · Available on crate feature
time
only.Expand description
An enumeration allowing the definition of the expiration time of an alarm, recurring or not.
Variants§
OneShot(TimeSpec)
Alarm will trigger once after the time given in TimeSpec
IntervalDelayed(TimeSpec, TimeSpec)
Alarm will trigger after a specified delay and then every interval of time.
Interval(TimeSpec)
Alarm will trigger every specified interval of time.
Trait Implementations§
source§impl Clone for Expiration
impl Clone for Expiration
source§fn clone(&self) -> Expiration
fn clone(&self) -> Expiration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Expiration
impl Debug for Expiration
source§impl PartialEq<Expiration> for Expiration
impl PartialEq<Expiration> for Expiration
source§fn eq(&self, other: &Expiration) -> bool
fn eq(&self, other: &Expiration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.