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
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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Expiration) -> bool
fn ne(&self, other: &Expiration) -> bool
This method tests for !=
.
impl Copy 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more