pub enum Crash<Error> {
PowerOff(DeviceID),
Panic(Unwind),
Error(Error),
Cascade(DeviceID, Fault),
}
Expand description
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(DeviceID, Fault)
A device we depended upon faulted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Error> Freeze for Crash<Error>where
Error: Freeze,
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§
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