pub enum KeyAction {
Show 21 variants MoveLeft, MoveRight, MoveUp, MoveDown, Select, Deselect, Exit, Back, ClearHistory, FirstHistory, Reload, StartCommandCapture, Paste, RemoveWord, ClearLine, PreviousWord, NextWord, First, End, PreviousEntry, NextEntry,
}
Expand description

Part of the keybindings config

Variants§

§

MoveLeft

Moves cursor to the left direction, or to the first item

§

MoveRight

Moves cursor to the right direction, or to the last item

§

MoveUp

Moves cursor up

§

MoveDown

Moves cursor dowm

§

Select

select the current item

§

Deselect

deselect the current item, reverts the cursor back to its hover state

§

Exit

exits/quits the entire app

§

Back

revert last history

§

ClearHistory

removes all history

§

FirstHistory

reverts back to first history (home page if it is not cleared)

§

Reload

reload the current page

§

StartCommandCapture

start command capture

§

Paste

paste text

§

RemoveWord

remove a word

§

ClearLine

removes all content in textfield

§

PreviousWord

move cursor to previous word in textfield

§

NextWord

move cursor to next word in textfield

§

First

move cursor to the first position

§

End

move cursor to the last position

§

PreviousEntry

Previous entry

§

NextEntry

Next entry

Trait Implementations§

source§

impl Clone for KeyAction

source§

fn clone(&self) -> KeyAction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for KeyAction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for KeyAction

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<KeyAction> for KeyAction

source§

fn eq(&self, other: &KeyAction) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for KeyAction

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for KeyAction

source§

impl Eq for KeyAction

source§

impl StructuralEq for KeyAction

source§

impl StructuralPartialEq for KeyAction

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneAny for Twhere T: Any + Clone,

source§

fn clone_any(&self) -> Box<dyn CloneAny, Global>

source§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send, Global>where T: Send,

source§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync, Global>where T: Sync,

source§

fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Sync + Send, Global>where T: Send + Sync,

source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DebugAny for Twhere T: Any + Debug,

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

§

impl<T> UnsafeAny for Twhere T: Any,