pub struct WaitOutcome {
pub observation: WorkObservation,
pub end: WaitEnd,
}Expand description
The result of a finite wait: one consistent snapshot plus why the wait ended.
Observing Paused / Finished / Faulted, or timing out, is a
successful observation — it never mutates the observed work’s state.
Fields§
§observation: WorkObservationThe snapshot taken when the wait ended.
end: WaitEndWhether the wait reached a returnable state or timed out.
Trait Implementations§
Source§impl Clone for WaitOutcome
impl Clone for WaitOutcome
Source§fn clone(&self) -> WaitOutcome
fn clone(&self) -> WaitOutcome
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 moreAuto Trait Implementations§
impl Freeze for WaitOutcome
impl RefUnwindSafe for WaitOutcome
impl Send for WaitOutcome
impl Sync for WaitOutcome
impl Unpin for WaitOutcome
impl UnsafeUnpin for WaitOutcome
impl UnwindSafe for WaitOutcome
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