pub enum RunError<B, E> {
Behavior(B),
Environment(E),
Poisoned,
}Expand description
A failure on either side of the behavior/environment boundary, or a poisoned machine executor.
Variants§
Behavior(B)
The behavior transition failed.
Environment(E)
The environment rejected a successful transition’s effects.
Poisoned
The machine executor was poisoned by a panicking transition and the driver was reused. The actor is terminal. The driver detects poison before polling the environment again, so it does not consume another input while reporting this marker.
Trait Implementations§
impl<B: Eq, E: Eq> Eq for RunError<B, E>
Source§impl<B, E> Error for RunError<B, E>
impl<B, E> Error for RunError<B, E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl<B: PartialEq, E: PartialEq> StructuralPartialEq for RunError<B, E>
Auto Trait Implementations§
impl<B, E> Freeze for RunError<B, E>
impl<B, E> RefUnwindSafe for RunError<B, E>where
B: RefUnwindSafe,
E: RefUnwindSafe,
impl<B, E> Send for RunError<B, E>
impl<B, E> Sync for RunError<B, E>
impl<B, E> Unpin for RunError<B, E>
impl<B, E> UnsafeUnpin for RunError<B, E>where
B: UnsafeUnpin,
E: UnsafeUnpin,
impl<B, E> UnwindSafe for RunError<B, E>where
B: UnwindSafe,
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