pub enum Action {
ClearInput,
CancelTask,
DismissModal,
CloseOverlay,
ToggleTreeView,
Quit,
SoftQuit,
HardQuit,
Bell,
PassThrough,
}Expand description
High-level actions that can result from keybinding resolution.
These actions are returned by the ActionMapper and should be handled
by the application’s event loop.
Variants§
ClearInput
Empty the input buffer, keep cursor at start.
CancelTask
Send cancel signal to running task, update status.
DismissModal
Close topmost modal, return focus to parent.
CloseOverlay
Deactivate view overlay (tree view, debug HUD).
ToggleTreeView
Toggle the tree/file view overlay.
Quit
Clean exit via quit command.
SoftQuit
Quit if idle, otherwise cancel current operation.
HardQuit
Immediate quit (bypass confirmation if any).
Bell
Emit terminal bell (BEL character).
PassThrough
Forward event to focused widget/input.
This indicates the key should be passed through to normal input handling.
Implementations§
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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