pub enum Next<T: StateEnum> {
None,
Target(T),
ExactTarget(T),
}Expand description
Represents either no action or some type of transition to new state.
Return type of multiple Substate methods.
Variants§
None
No transition should be taken, stay in the current active state.
Target(T)
A transition should be taken to the target state.
See StateMachine::transition for transition semantics.
ExactTarget(T)
A transition should be taken to exactly the target state.
See StateMachine::exact_transition for exact transition semantics.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Next<T>where
T: Freeze,
impl<T> RefUnwindSafe for Next<T>where
T: RefUnwindSafe,
impl<T> Send for Next<T>where
T: Send,
impl<T> Sync for Next<T>where
T: Sync,
impl<T> Unpin for Next<T>where
T: Unpin,
impl<T> UnwindSafe for Next<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