pub struct StateTransitionError<State> { /* private fields */ }Expand description
Failed state transition that returns the original transaction token.
Implementations§
Source§impl<State> StateTransitionError<State>
impl<State> StateTransitionError<State>
Sourcepub const fn error(&self) -> ProtocolError
pub const fn error(&self) -> ProtocolError
Returns the validation error that prevented promotion.
Sourcepub fn into_parts(self) -> (Transaction<State>, ProtocolError)
pub fn into_parts(self) -> (Transaction<State>, ProtocolError)
Splits this error into the original transaction token and error.
Trait Implementations§
Source§impl<State: Debug> Debug for StateTransitionError<State>
impl<State: Debug> Debug for StateTransitionError<State>
impl<State: Eq> Eq for StateTransitionError<State>
Source§impl<State: PartialEq> PartialEq for StateTransitionError<State>
impl<State: PartialEq> PartialEq for StateTransitionError<State>
Source§fn eq(&self, other: &StateTransitionError<State>) -> bool
fn eq(&self, other: &StateTransitionError<State>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<State: PartialEq> StructuralPartialEq for StateTransitionError<State>
Auto Trait Implementations§
impl<State> Freeze for StateTransitionError<State>
impl<State> RefUnwindSafe for StateTransitionError<State>where
State: RefUnwindSafe,
impl<State> Send for StateTransitionError<State>where
State: Send,
impl<State> Sync for StateTransitionError<State>where
State: Sync,
impl<State> Unpin for StateTransitionError<State>where
State: Unpin,
impl<State> UnsafeUnpin for StateTransitionError<State>
impl<State> UnwindSafe for StateTransitionError<State>where
State: UnwindSafe,
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