pub enum TimerDirectiveSnapshot {
Stop,
ContinueImmediately,
RetryAfter {
delay_ns: u64,
},
ScheduleAt {
deadline_ns: u64,
},
RecurAfterCompletion,
}Expand description
Portable representation of the latest ordinary scheduling directive.
Variants§
Stop
Stop after the completed invocation.
ContinueImmediately
Continue in the next available timer message.
RetryAfter
Retry after a relative delay.
ScheduleAt
Schedule at one absolute IC timestamp.
RecurAfterCompletion
Recur using the registration’s configured cadence.
Trait Implementations§
Source§impl Clone for TimerDirectiveSnapshot
impl Clone for TimerDirectiveSnapshot
Source§fn clone(&self) -> TimerDirectiveSnapshot
fn clone(&self) -> TimerDirectiveSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimerDirectiveSnapshot
Source§impl Debug for TimerDirectiveSnapshot
impl Debug for TimerDirectiveSnapshot
impl Eq for TimerDirectiveSnapshot
Source§impl Hash for TimerDirectiveSnapshot
impl Hash for TimerDirectiveSnapshot
Source§impl Ord for TimerDirectiveSnapshot
impl Ord for TimerDirectiveSnapshot
Source§fn cmp(&self, other: &TimerDirectiveSnapshot) -> Ordering
fn cmp(&self, other: &TimerDirectiveSnapshot) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimerDirectiveSnapshot
impl PartialEq for TimerDirectiveSnapshot
Source§impl PartialOrd for TimerDirectiveSnapshot
impl PartialOrd for TimerDirectiveSnapshot
impl StructuralPartialEq for TimerDirectiveSnapshot
Source§impl TryFrom<TimerDirective> for TimerDirectiveSnapshot
impl TryFrom<TimerDirective> for TimerDirectiveSnapshot
Source§type Error = ScheduleError
type Error = ScheduleError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TimerDirectiveSnapshot
impl RefUnwindSafe for TimerDirectiveSnapshot
impl Send for TimerDirectiveSnapshot
impl Sync for TimerDirectiveSnapshot
impl Unpin for TimerDirectiveSnapshot
impl UnsafeUnpin for TimerDirectiveSnapshot
impl UnwindSafe for TimerDirectiveSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more