Enum modalkit::commands::CommandStep
source · pub enum CommandStep<C: Command> {
Continue(C::Action, C::Context),
Stop(C::Action, C::Context),
Again(String),
}
Expand description
Result from executing a single command in a sequence.
Variants§
Continue(C::Action, C::Context)
Return an action, and continue onto the next part of the command sequence.
Stop(C::Action, C::Context)
Return an action, and skip anything else in the command sequence.
Again(String)
Process the given string as a command.
Auto Trait Implementations§
impl<C> Freeze for CommandStep<C>
impl<C> RefUnwindSafe for CommandStep<C>
impl<C> Send for CommandStep<C>
impl<C> Sync for CommandStep<C>
impl<C> Unpin for CommandStep<C>
impl<C> UnwindSafe for CommandStep<C>
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