pub enum Trans<D> {
Push(BoxState<D>),
Pop,
Replace(BoxState<D>),
Isolate(BoxState<D>),
Quit,
None,
}Expand description
Variants§
Push(BoxState<D>)
Pushes a new state above the current one. Effectively pauses the current state until everything above it is popped.
Pop
Pops the current state from the stack.
Replace(BoxState<D>)
Pops and pushes a new state. Effectively replaces the current state with a new one.
Isolate(BoxState<D>)
Pops every state from the stack and pushes a new one. Effectively isolates it as the only state on the stack.
Quit
Pops everything from the stack. Effectively ends the state stack machine.
None
Does nothing to the stack. Effectively keeps the current state and the stack the way it is.
Auto Trait Implementations§
impl<D> Freeze for Trans<D>
impl<D> !RefUnwindSafe for Trans<D>
impl<D> !Send for Trans<D>
impl<D> !Sync for Trans<D>
impl<D> Unpin for Trans<D>
impl<D> !UnwindSafe for Trans<D>
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