pub enum Action {
Show 27 variants
Quit,
Up,
Down,
ToggleSelect,
ToggleExpand,
Expand,
Collapse,
SelectAll,
DeselectAll,
Delete,
Confirm,
Cancel,
Help,
Scan,
PageUp,
PageDown,
Top,
Bottom,
Search,
NextTab,
PrevTab,
Refresh,
ScrollUp,
ScrollDown,
Back,
TogglePermanent,
None,
}Expand description
Key bindings for the TUI
Variants§
Quit
Quit the application
Up
Move selection up
Down
Move selection down
ToggleSelect
Toggle selection of current item
ToggleExpand
Expand/collapse current item
Expand
Expand current item
Collapse
Collapse current item
SelectAll
Select all items
DeselectAll
Deselect all items
Delete
Delete selected items
Confirm
Confirm action
Cancel
Cancel action
Help
Show help
Scan
Start scanning
PageUp
Page up
PageDown
Page down
Top
Go to top
Bottom
Go to bottom
Search
Search/filter
NextTab
Tab to next category
PrevTab
Tab to previous category
Refresh
Refresh
ScrollUp
Scroll up (mouse)
ScrollDown
Scroll down (mouse)
Back
Go back to menu
TogglePermanent
Toggle permanent delete mode
None
No action
Implementations§
Source§impl Action
impl Action
Sourcepub fn from_mouse(mouse: &MouseEvent) -> Self
pub fn from_mouse(mouse: &MouseEvent) -> Self
Convert a mouse event to an action
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more