pub enum Exit<E> {
Fail(E),
Die(String),
Interrupt,
}Expand description
How a program stops.
Fail is an expected error and stays in the type. Die is a defect.
Interrupt is cancellation from a parent scope. Retries and catch_fail
see only Fail.
Variants§
Implementations§
Trait Implementations§
impl<E: Eq> Eq for Exit<E>
Source§impl From<ActorError> for Exit<ActorError>
impl From<ActorError> for Exit<ActorError>
Source§fn from(error: ActorError) -> Self
fn from(error: ActorError) -> Self
Converts to this type from the input type.
impl<E: PartialEq> StructuralPartialEq for Exit<E>
Auto Trait Implementations§
impl<E> Freeze for Exit<E>where
E: Freeze,
impl<E> RefUnwindSafe for Exit<E>where
E: RefUnwindSafe,
impl<E> Send for Exit<E>where
E: Send,
impl<E> Sync for Exit<E>where
E: Sync,
impl<E> Unpin for Exit<E>where
E: Unpin,
impl<E> UnsafeUnpin for Exit<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Exit<E>where
E: UnwindSafe,
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