pub struct WatchdogAttemptSnapshot { /* private fields */ }Expand description
One watchdog work attempt paired with an authoritative successor.
Implementations§
Source§impl WatchdogAttemptSnapshot
impl WatchdogAttemptSnapshot
Sourcepub const fn generation(self) -> u64
pub const fn generation(self) -> u64
Return the attempt generation.
Sourcepub const fn status(self) -> WatchdogAttemptStatus
pub const fn status(self) -> WatchdogAttemptStatus
Return whether work is dispatched or running.
Trait Implementations§
Source§impl Clone for WatchdogAttemptSnapshot
impl Clone for WatchdogAttemptSnapshot
Source§fn clone(&self) -> WatchdogAttemptSnapshot
fn clone(&self) -> WatchdogAttemptSnapshot
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 WatchdogAttemptSnapshot
Source§impl Debug for WatchdogAttemptSnapshot
impl Debug for WatchdogAttemptSnapshot
impl Eq for WatchdogAttemptSnapshot
Source§impl Hash for WatchdogAttemptSnapshot
impl Hash for WatchdogAttemptSnapshot
Source§impl Ord for WatchdogAttemptSnapshot
impl Ord for WatchdogAttemptSnapshot
Source§fn cmp(&self, other: &WatchdogAttemptSnapshot) -> Ordering
fn cmp(&self, other: &WatchdogAttemptSnapshot) -> 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 WatchdogAttemptSnapshot
impl PartialEq for WatchdogAttemptSnapshot
Source§impl PartialOrd for WatchdogAttemptSnapshot
impl PartialOrd for WatchdogAttemptSnapshot
impl StructuralPartialEq for WatchdogAttemptSnapshot
Auto Trait Implementations§
impl Freeze for WatchdogAttemptSnapshot
impl RefUnwindSafe for WatchdogAttemptSnapshot
impl Send for WatchdogAttemptSnapshot
impl Sync for WatchdogAttemptSnapshot
impl Unpin for WatchdogAttemptSnapshot
impl UnsafeUnpin for WatchdogAttemptSnapshot
impl UnwindSafe for WatchdogAttemptSnapshot
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