pub struct TimerCompletion { /* private fields */ }Expand description
Classified result of one returned consumer invocation.
Implementations§
Source§impl TimerCompletion
impl TimerCompletion
Sourcepub const fn retryable_failure(work_count: u64) -> Self
pub const fn retryable_failure(work_count: u64) -> Self
Construct an expected failure, retaining completed partial work.
Sourcepub const fn invariant_failure(work_count: u64) -> Self
pub const fn invariant_failure(work_count: u64) -> Self
Construct an invariant failure, retaining completed partial work.
Sourcepub const fn outcome(self) -> TimerCompletionOutcome
pub const fn outcome(self) -> TimerCompletionOutcome
Return the completion class.
Sourcepub const fn work_count(self) -> u64
pub const fn work_count(self) -> u64
Return application work units reported by the consumer.
Trait Implementations§
Source§impl Clone for TimerCompletion
impl Clone for TimerCompletion
Source§fn clone(&self) -> TimerCompletion
fn clone(&self) -> TimerCompletion
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 TimerCompletion
Source§impl Debug for TimerCompletion
impl Debug for TimerCompletion
impl Eq for TimerCompletion
Source§impl PartialEq for TimerCompletion
impl PartialEq for TimerCompletion
impl StructuralPartialEq for TimerCompletion
Auto Trait Implementations§
impl Freeze for TimerCompletion
impl RefUnwindSafe for TimerCompletion
impl Send for TimerCompletion
impl Sync for TimerCompletion
impl Unpin for TimerCompletion
impl UnsafeUnpin for TimerCompletion
impl UnwindSafe for TimerCompletion
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