[][src]Enum task_scope::Canceled

pub enum Canceled {
    Graceful,
    Forced,
}

The error type for cancellation.

Variants

Graceful

The parent task issued a graceful cancellation request. The children are in a "grace period"; The parent will wait until all children complete shutdown.

Forced

The parent task is forcibly shutting down children (mainly because the parent is dropped). The children are in a "mercy period"; They can continue execution until the next yield, and then they will be stopped automatically.

Trait Implementations

impl Debug for Canceled[src]

impl Display for Canceled[src]

impl Eq for Canceled[src]

impl Error for Canceled[src]

impl Hash for Canceled[src]

impl PartialEq<Canceled> for Canceled[src]

impl StructuralEq for Canceled[src]

impl StructuralPartialEq for Canceled[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.