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
sourceimpl Clone for Expiration
impl Clone for Expiration
sourcefn clone(&self) -> Expiration
fn clone(&self) -> Expiration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Expiration
impl Debug for Expiration
sourceimpl PartialEq<Expiration> for Expiration
impl PartialEq<Expiration> for Expiration
sourcefn eq(&self, other: &Expiration) -> bool
fn eq(&self, other: &Expiration) -> bool
impl Copy for Expiration
impl Eq for Expiration
impl StructuralEq for Expiration
impl StructuralPartialEq for Expiration
Auto Trait Implementations
impl RefUnwindSafe for Expiration
impl Send for Expiration
impl Sync for Expiration
impl Unpin for Expiration
impl UnwindSafe for Expiration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more