pub enum Fault {
Panic(Box<dyn Any + Send>),
Handler(ComponentFault),
}Expand description
The source of a component fault.
Variants§
Panic(Box<dyn Any + Send>)
The component panicked.
Handler(ComponentFault)
A handler returned a recoverable fault.
Only HandlerError::Recoverable values are passed to recovery. Benign handler errors continue normally, and unrecoverable handler errors are terminal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fault
impl !RefUnwindSafe for Fault
impl Send for Fault
impl !Sync for Fault
impl Unpin for Fault
impl UnsafeUnpin for Fault
impl !UnwindSafe for Fault
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