pub enum Outcome {
Wait(PendingState),
Commit(EngineCmd),
Cancel,
Forward,
}Expand description
One step of the reducer.
Variants§
Wait(PendingState)
Need more keys — keep accumulating with new state.
Commit(EngineCmd)
Run this engine command, then clear pending.
Cancel
Cancel pending (Esc, invalid char, etc.). No engine call.
Forward
Pending state didn’t consume this key — host should route it normally (e.g. modifier-only key). Pending state stays alive.
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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