pub enum KeyBindingError {
UnknownAction {
action: String,
},
Empty {
action: String,
},
InvalidKey {
action: String,
index: usize,
source: KeySpecError,
},
}Expand description
A malformed [tui.key_bindings] entry.
Variants§
UnknownAction
The operation name is not supported.
Empty
An operation has no keys assigned.
InvalidKey
One key expression cannot be parsed.
Trait Implementations§
Source§impl Clone for KeyBindingError
impl Clone for KeyBindingError
Source§fn clone(&self) -> KeyBindingError
fn clone(&self) -> KeyBindingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyBindingError
impl Debug for KeyBindingError
Source§impl Display for KeyBindingError
impl Display for KeyBindingError
impl Eq for KeyBindingError
Source§impl Error for KeyBindingError
impl Error for KeyBindingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for KeyBindingError
impl PartialEq for KeyBindingError
impl StructuralPartialEq for KeyBindingError
Auto Trait Implementations§
impl Freeze for KeyBindingError
impl RefUnwindSafe for KeyBindingError
impl Send for KeyBindingError
impl Sync for KeyBindingError
impl Unpin for KeyBindingError
impl UnsafeUnpin for KeyBindingError
impl UnwindSafe for KeyBindingError
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<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