pub enum CancelOutcome {
Requested,
AlreadyRequested,
AlreadyFinished(ExecutionState),
Unknown,
}Expand description
The outcome of asking to cancel.
Variants§
Requested
The token is set and a cancelling event was published.
AlreadyRequested
It had already been asked for.
AlreadyFinished(ExecutionState)
It had already finished; nothing was done.
Unknown
No such execution.
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 moreSource§impl Debug for CancelOutcome
impl Debug for CancelOutcome
impl Eq for CancelOutcome
Source§impl PartialEq for CancelOutcome
impl PartialEq for CancelOutcome
Source§fn eq(&self, other: &CancelOutcome) -> bool
fn eq(&self, other: &CancelOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.