[][src]Enum async_backplane::Crash

pub enum Crash<Error> {
    PowerOff(DeviceID),
    Panic(Unwind),
    Error(Error),
    Cascade(DeviceIDFault),
}

Something went wrong with a Device.

Variants

PowerOff(DeviceID)

We were asked to shut down.

Panic(Unwind)

The Future we were executing panicked.

Error(Error)

The Future we were executing returned an Err.

Cascade(DeviceIDFault)

A device we depended upon faulted.

Implementations

impl<Error> Crash<Error>[src]

pub fn is_panic(&self) -> bool[src]

Did the future unwind panic?

pub fn is_error(&self) -> bool[src]

Did the future return Err?

pub fn is_cascade(&self) -> bool[src]

Did a Device we depend on fault?

Trait Implementations

impl<Error: Debug> Debug for Crash<Error>[src]

Auto Trait Implementations

impl<Error> !RefUnwindSafe for Crash<Error>

impl<Error> Send for Crash<Error> where
    Error: Send

impl<Error> !Sync for Crash<Error>

impl<Error> Unpin for Crash<Error> where
    Error: Unpin

impl<Error> !UnwindSafe for Crash<Error>

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, 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.