pub struct Stopped<S, E> {
pub state: S,
pub cause: E,
}Expand description
A stopped transition retains its current owner and the exact cause. Unlike a rejected input, the owner may already contain committed progress.
Fields§
§state: S§cause: EImplementations§
Source§impl<S, E> Stopped<S, E>
impl<S, E> Stopped<S, E>
pub fn attach<R>(state: S, result: Result<R, E>) -> Result<(S, R), Self>
pub fn map<T>(self, map: impl FnOnce(S) -> T) -> Stopped<T, E>
pub fn idle<W>(self) -> Stopped<State<S, W>, E>
pub fn active<I>(self) -> Stopped<State<I, S>, E>
pub fn convert<F: From<E>>(self) -> Stopped<S, F>
pub fn into_parts(self) -> (S, E)
Trait Implementations§
Auto Trait Implementations§
impl<S, E> Freeze for Stopped<S, E>
impl<S, E> RefUnwindSafe for Stopped<S, E>where
S: RefUnwindSafe,
E: RefUnwindSafe,
impl<S, E> Send for Stopped<S, E>
impl<S, E> Sync for Stopped<S, E>
impl<S, E> Unpin for Stopped<S, E>
impl<S, E> UnsafeUnpin for Stopped<S, E>where
S: UnsafeUnpin,
E: UnsafeUnpin,
impl<S, E> UnwindSafe for Stopped<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