pub struct Failed<S, E> {
pub session: S,
pub error: E,
}Expand description
A failed state transition.
session is the session in its original state (the
transition failed, so the state did not change). error is the
reason the transition failed. Used by fallible transitions so
callers can retry without rebuilding from scratch.
Fields§
§session: SThe session, still in its pre-transition state.
error: EWhy the transition failed.
Trait Implementations§
Source§impl<S: Debug, E: Error + 'static> Error for Failed<S, E>
impl<S: Debug, E: Error + 'static> Error for Failed<S, E>
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()
Auto Trait Implementations§
impl<S, E> Freeze for Failed<S, E>
impl<S, E> RefUnwindSafe for Failed<S, E>where
S: RefUnwindSafe,
E: RefUnwindSafe,
impl<S, E> Send for Failed<S, E>
impl<S, E> Sync for Failed<S, E>
impl<S, E> Unpin for Failed<S, E>
impl<S, E> UnwindSafe for Failed<S, E>where
S: UnwindSafe,
E: 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