pub enum Action {
Show 26 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,
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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