pub enum EventTransitionCommitError {
Unsupported,
CoordinateTargetMismatch {
coordinate: EventTransition,
target: EventState,
},
CurrentStateMismatch {
expected: EventState,
actual: EventState,
},
}Expand description
Failure to atomically commit an event-state transition.
Variants§
Unsupported
The object does not implement the internal transition-commit channel.
CoordinateTargetMismatch
The supplied coordinate does not classify the exact destination state.
Fields
§
coordinate: EventTransitionThe coordinate supplied by the caller.
§
target: EventStateThe exact destination state supplied by the caller.
CurrentStateMismatch
The object’s current state no longer matches the staged source state.
Fields
§
expected: EventStateThe source state expected by the staged transition.
§
actual: EventStateThe object’s current state when the commit was attempted.
Trait Implementations§
Source§impl Clone for EventTransitionCommitError
impl Clone for EventTransitionCommitError
impl Copy for EventTransitionCommitError
Source§impl Debug for EventTransitionCommitError
impl Debug for EventTransitionCommitError
impl Eq for EventTransitionCommitError
impl StructuralPartialEq for EventTransitionCommitError
Auto Trait Implementations§
impl Freeze for EventTransitionCommitError
impl RefUnwindSafe for EventTransitionCommitError
impl Send for EventTransitionCommitError
impl Sync for EventTransitionCommitError
impl Unpin for EventTransitionCommitError
impl UnsafeUnpin for EventTransitionCommitError
impl UnwindSafe for EventTransitionCommitError
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