pub enum RuntimeDeliveryMachineTransitionError {
NoMatchingTransition {
phase: RuntimeDeliveryPhase,
trigger: RuntimeDeliveryMachineTransitionTrigger,
},
GuardRejected {
phase: RuntimeDeliveryPhase,
trigger: RuntimeDeliveryMachineTransitionTrigger,
},
RecoveredStateInvariantRejected {
phase: RuntimeDeliveryPhase,
invariant: &'static str,
},
}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.
RecoveredStateInvariantRejected
A recovered authority state violated a generated invariant before any transition was attempted.
Trait Implementations§
Source§impl Clone for RuntimeDeliveryMachineTransitionError
impl Clone for RuntimeDeliveryMachineTransitionError
Source§fn clone(&self) -> RuntimeDeliveryMachineTransitionError
fn clone(&self) -> RuntimeDeliveryMachineTransitionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Eq for RuntimeDeliveryMachineTransitionError
Source§impl Error for RuntimeDeliveryMachineTransitionError
impl Error for RuntimeDeliveryMachineTransitionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for RuntimeDeliveryMachineTransitionError
Auto Trait Implementations§
impl Freeze for RuntimeDeliveryMachineTransitionError
impl RefUnwindSafe for RuntimeDeliveryMachineTransitionError
impl Send for RuntimeDeliveryMachineTransitionError
impl Sync for RuntimeDeliveryMachineTransitionError
impl Unpin for RuntimeDeliveryMachineTransitionError
impl UnsafeUnpin for RuntimeDeliveryMachineTransitionError
impl UnwindSafe for RuntimeDeliveryMachineTransitionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
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
key and return true if they are equal.