pub enum AuthMachineTransitionError {
NoMatchingTransition {
phase: String,
trigger: String,
},
GuardRejected {
phase: String,
trigger: String,
},
}Variants§
NoMatchingTransition
No transition is declared for this (phase, trigger) pair at
all — the trigger variant is semantically out of scope for
the current phase. Shell callers should treat this as a hard
error: firing the wrong input for the current phase is a
programming mistake.
GuardRejected
A transition is declared for this (phase, trigger) pair
but every candidate transition’s guard(s) evaluated false.
Typed signal that the input was rejected on state, not
unrecognised. Shell callers that fire idempotently (e.g.,
a realtime dispatcher firing ProductTurnCommitted on every
observed TurnCommitted event, expecting the DSL to drop
duplicates) should treat this as a successful no-op rather
than an error.
Trait Implementations§
Source§impl Clone for AuthMachineTransitionError
impl Clone for AuthMachineTransitionError
Source§fn clone(&self) -> AuthMachineTransitionError
fn clone(&self) -> AuthMachineTransitionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthMachineTransitionError
impl Debug for AuthMachineTransitionError
Source§impl Display for AuthMachineTransitionError
impl Display for AuthMachineTransitionError
Source§impl Error for AuthMachineTransitionError
impl Error for AuthMachineTransitionError
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()
Source§impl PartialEq for AuthMachineTransitionError
impl PartialEq for AuthMachineTransitionError
Source§fn eq(&self, other: &AuthMachineTransitionError) -> bool
fn eq(&self, other: &AuthMachineTransitionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AuthMachineTransitionError
impl StructuralPartialEq for AuthMachineTransitionError
Auto Trait Implementations§
impl Freeze for AuthMachineTransitionError
impl RefUnwindSafe for AuthMachineTransitionError
impl Send for AuthMachineTransitionError
impl Sync for AuthMachineTransitionError
impl Unpin for AuthMachineTransitionError
impl UnsafeUnpin for AuthMachineTransitionError
impl UnwindSafe for AuthMachineTransitionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.