pub struct WatchdogRunResult { /* private fields */ }Expand description
Synchronous watchdog work result.
Implementations§
Source§impl WatchdogRunResult
impl WatchdogRunResult
Sourcepub const fn new(
completion: TimerCompletion,
decision: WatchdogDecision,
) -> Self
pub const fn new( completion: TimerCompletion, decision: WatchdogDecision, ) -> Self
Construct a result, forcing invariant failures to stop.
Sourcepub const fn completion(self) -> TimerCompletion
pub const fn completion(self) -> TimerCompletion
Return the completion classification and work count.
Sourcepub const fn decision(self) -> WatchdogDecision
pub const fn decision(self) -> WatchdogDecision
Return how the committed successor should be retained or cleared.
Trait Implementations§
Source§impl Clone for WatchdogRunResult
impl Clone for WatchdogRunResult
Source§fn clone(&self) -> WatchdogRunResult
fn clone(&self) -> WatchdogRunResult
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 WatchdogRunResult
Source§impl Debug for WatchdogRunResult
impl Debug for WatchdogRunResult
impl Eq for WatchdogRunResult
Source§impl PartialEq for WatchdogRunResult
impl PartialEq for WatchdogRunResult
impl StructuralPartialEq for WatchdogRunResult
Auto Trait Implementations§
impl Freeze for WatchdogRunResult
impl RefUnwindSafe for WatchdogRunResult
impl Send for WatchdogRunResult
impl Sync for WatchdogRunResult
impl Unpin for WatchdogRunResult
impl UnsafeUnpin for WatchdogRunResult
impl UnwindSafe for WatchdogRunResult
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