pub struct GuardError {
pub guard: &'static str,
pub event: &'static str,
pub kind: TransitionErrorKind,
}Expand description
Error returned when a guard or around callback fails in typestate mode.
In typestate machines, guards and around callbacks can fail even though the transition is valid. The machine is returned along with this error so the caller can retry or handle it.
Fields§
§guard: &'static str§event: &'static str§kind: TransitionErrorKindImplementations§
Trait Implementations§
Source§impl Clone for GuardError
impl Clone for GuardError
Source§fn clone(&self) -> GuardError
fn clone(&self) -> GuardError
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 Debug for GuardError
impl Debug for GuardError
Source§impl PartialEq for GuardError
impl PartialEq for GuardError
impl Eq for GuardError
impl StructuralPartialEq for GuardError
Auto Trait Implementations§
impl Freeze for GuardError
impl RefUnwindSafe for GuardError
impl Send for GuardError
impl Sync for GuardError
impl Unpin for GuardError
impl UnwindSafe for GuardError
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