pub struct MachineError<A, M, E> {
pub event: User<A, M>,
pub cause: E,
}Expand description
Controlled machine rejection with the complete unaccepted mailbox input.
Fields§
§event: User<A, M>Exact user event whose transition or induced drain was rejected.
cause: EDomain error returned by the phase function.
Trait Implementations§
Source§impl<A: Clone, M: Clone, E: Clone> Clone for MachineError<A, M, E>
impl<A: Clone, M: Clone, E: Clone> Clone for MachineError<A, M, E>
Source§fn clone(&self) -> MachineError<A, M, E>
fn clone(&self) -> MachineError<A, M, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A, M, E: Debug> Debug for MachineError<A, M, E>
impl<A, M, E: Debug> Debug for MachineError<A, M, E>
Source§impl<A, M, E> Display for MachineError<A, M, E>where
E: Display,
impl<A, M, E> Display for MachineError<A, M, E>where
E: Display,
Source§impl<A, M, E> Error for MachineError<A, M, E>
impl<A, M, E> Error for MachineError<A, M, E>
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<A: Eq, M: Eq, E: Eq> Eq for MachineError<A, M, E>
impl<A, M> StaticallyInfallible for MachineError<A, M, Never>
impl<A, M, E> StructuralPartialEq for MachineError<A, M, E>
Auto Trait Implementations§
impl<A, M, E> Freeze for MachineError<A, M, E>
impl<A, M, E> RefUnwindSafe for MachineError<A, M, E>
impl<A, M, E> Send for MachineError<A, M, E>
impl<A, M, E> Sync for MachineError<A, M, E>
impl<A, M, E> Unpin for MachineError<A, M, E>
impl<A, M, E> UnsafeUnpin for MachineError<A, M, E>
impl<A, M, E> UnwindSafe for MachineError<A, M, E>
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