Enum safeword::Shutdown[][src]

pub enum Shutdown<T, E> {
    FutureFinished(T),
    FutureErr(E),
    NoRuntime(Error),
    SignalError(Error),
}

Describes the possible reasons for the runtime to unexpectedly stop (that is, not stop because of a signal).

Variants

The future passed to Safeword::run unexpectedly finished.

The future passed to Safeword::run failed.

The Runtime creation failed.

A Unix signal handler failed.

Trait Implementations

impl<T: Debug, E: Debug> Debug for Shutdown<T, E>
[src]

Formats the value using the given formatter. Read more

impl<T, E> Display for Shutdown<T, E> where
    E: Display
[src]

Formats the value using the given formatter. Read more

impl<T, E> Error for Shutdown<T, E> where
    T: Debug,
    E: Error
[src]

The lower-level cause of this error, if any. Read more

This method is soft-deprecated. Read more

Auto Trait Implementations

impl<T, E> Send for Shutdown<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for Shutdown<T, E> where
    E: Sync,
    T: Sync