pub enum WatchdogDecision {
Continue,
ContinueImmediately,
ScheduleAt(u64),
Stop,
}Expand description
Watchdog decision after one synchronous bounded work attempt.
Variants§
Continue
Retain the successor committed by the scheduler message.
ContinueImmediately
Move the committed successor to the current IC time.
The replacement remains a later scheduler message; this never invokes consumer work recursively in the current message.
ScheduleAt(u64)
Replace the committed successor with an exact absolute IC deadline.
A past deadline schedules a later message with zero delay. If work traps, this proposal rolls back and the cadence successor remains.
Stop
Terminate and clear the committed successor.
Trait Implementations§
Source§impl Clone for WatchdogDecision
impl Clone for WatchdogDecision
Source§fn clone(&self) -> WatchdogDecision
fn clone(&self) -> WatchdogDecision
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 WatchdogDecision
Source§impl Debug for WatchdogDecision
impl Debug for WatchdogDecision
impl Eq for WatchdogDecision
Source§impl Hash for WatchdogDecision
impl Hash for WatchdogDecision
Source§impl Ord for WatchdogDecision
impl Ord for WatchdogDecision
Source§fn cmp(&self, other: &WatchdogDecision) -> Ordering
fn cmp(&self, other: &WatchdogDecision) -> 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 WatchdogDecision
impl PartialEq for WatchdogDecision
Source§impl PartialOrd for WatchdogDecision
impl PartialOrd for WatchdogDecision
impl StructuralPartialEq for WatchdogDecision
Auto Trait Implementations§
impl Freeze for WatchdogDecision
impl RefUnwindSafe for WatchdogDecision
impl Send for WatchdogDecision
impl Sync for WatchdogDecision
impl Unpin for WatchdogDecision
impl UnsafeUnpin for WatchdogDecision
impl UnwindSafe for WatchdogDecision
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