pub enum OnceDecision {
Stop,
ContinueImmediately,
RetryAfter(Duration),
ScheduleAt(u64),
}Expand description
Scheduling proposal after a normally returned Once invocation.
Once permits explicit rescheduling, but has no configured recurrence:
ⓘ
use ic_timers::OnceDecision;
let decision = OnceDecision::RecurAfterCompletion;Variants§
Stop
Stop unless a pending authoritative command selects another schedule.
ContinueImmediately
Continue in a later timer message with zero delay.
RetryAfter(Duration)
Retry after a checked relative delay.
ScheduleAt(u64)
Schedule at an absolute IC timestamp in nanoseconds.
Trait Implementations§
Source§impl Clone for OnceDecision
impl Clone for OnceDecision
impl Copy for OnceDecision
Source§impl Debug for OnceDecision
impl Debug for OnceDecision
impl Eq for OnceDecision
Source§impl PartialEq for OnceDecision
impl PartialEq for OnceDecision
impl StructuralPartialEq for OnceDecision
Source§impl TryFrom<OnceDecision> for TimerDirectiveSnapshot
impl TryFrom<OnceDecision> 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 OnceDecision
impl RefUnwindSafe for OnceDecision
impl Send for OnceDecision
impl Sync for OnceDecision
impl Unpin for OnceDecision
impl UnsafeUnpin for OnceDecision
impl UnwindSafe for OnceDecision
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