pub enum Entry<T: StateEnum, U> {
State(U),
Target(T),
ExactTarget(T),
}Expand description
Return type of Substate::enter.
Represents either a successful state entry or a short circuit transition.
Variants§
State(U)
State entry was successful, here is the newly constructed 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, U> Freeze for Entry<T, U>
impl<T, U> RefUnwindSafe for Entry<T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, U> Send for Entry<T, U>
impl<T, U> Sync for Entry<T, U>
impl<T, U> Unpin for Entry<T, U>
impl<T, U> UnwindSafe for Entry<T, U>where
U: UnwindSafe,
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