pub enum CancelOutcome {
Signalled,
Stopped,
AlreadyTerminal,
}Expand description
What a cancel actually did to
the work.
Variants§
Signalled
The work was still executing and its own control token was fired; the terminal state is published when the runner returns (a completion that wins the race keeps its result).
Stopped
The work was paused and was terminated in place with no new external call, retaining its committed facts, continuation, and cause.
AlreadyTerminal
The work was already Finished/Faulted; its result was not
rewritten.
Trait Implementations§
Source§impl Clone for CancelOutcome
impl Clone for CancelOutcome
Source§fn clone(&self) -> CancelOutcome
fn clone(&self) -> CancelOutcome
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 CancelOutcome
Source§impl Debug for CancelOutcome
impl Debug for CancelOutcome
Source§impl<'de> Deserialize<'de> for CancelOutcome
impl<'de> Deserialize<'de> for CancelOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CancelOutcome
Source§impl PartialEq for CancelOutcome
impl PartialEq for CancelOutcome
Source§impl Serialize for CancelOutcome
impl Serialize for CancelOutcome
impl StructuralPartialEq for CancelOutcome
Auto Trait Implementations§
impl Freeze for CancelOutcome
impl RefUnwindSafe for CancelOutcome
impl Send for CancelOutcome
impl Sync for CancelOutcome
impl Unpin for CancelOutcome
impl UnsafeUnpin for CancelOutcome
impl UnwindSafe for CancelOutcome
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