pub enum Transition<S, C> {
Stay,
Goto {
next: S,
commands: Vec<C>,
},
Complete {
commands: Vec<C>,
},
}Expand description
What a process manager does in response to an event.
Variants§
Stay
Don’t change state; dispatch no commands.
Goto
Move to next state; dispatch commands in order.
Complete
Terminal state — clear correlation, dispatch any final commands.
Auto Trait Implementations§
impl<S, C> Freeze for Transition<S, C>where
S: Freeze,
impl<S, C> RefUnwindSafe for Transition<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for Transition<S, C>
impl<S, C> Sync for Transition<S, C>
impl<S, C> Unpin for Transition<S, C>
impl<S, C> UnsafeUnpin for Transition<S, C>where
S: UnsafeUnpin,
impl<S, C> UnwindSafe for Transition<S, C>where
S: UnwindSafe,
C: 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