pub enum Response<T: StateEnum> {
Next(Next<T>),
Drop,
}Expand description
The result of a single state handling an event.
Implements From for implementors of StateEnum and Option<StateEnum>
Variants§
Next(Next<T>)
The transition triggered by the event. A value of Next::None defers the handling of the event to the superstate.
Drop
Drop the event and stop handling it immediately.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Response<T>where
T: Freeze,
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnwindSafe for Response<T>where
T: 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