pub enum KeyComboParseError {
Empty,
MissingKey,
MultipleKeys,
UnknownToken(String),
InvalidModifiers(u8),
}Expand description
Why a user-entered keyboard shortcut could not be parsed.
Variants§
Empty
The shortcut field was blank.
MissingKey
The shortcut contains modifiers but no ordinary key.
MultipleKeys
More than one non-modifier key was entered.
UnknownToken(String)
A modifier or key name is not supported.
InvalidModifiers(u8)
Serialized modifier bits contain an unknown flag.
Trait Implementations§
Source§impl Clone for KeyComboParseError
impl Clone for KeyComboParseError
Source§fn clone(&self) -> KeyComboParseError
fn clone(&self) -> KeyComboParseError
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 KeyComboParseError
impl Debug for KeyComboParseError
Source§impl Display for KeyComboParseError
impl Display for KeyComboParseError
impl Eq for KeyComboParseError
Source§impl Error for KeyComboParseError
impl Error for KeyComboParseError
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 KeyComboParseError
impl PartialEq for KeyComboParseError
impl StructuralPartialEq for KeyComboParseError
Auto Trait Implementations§
impl Freeze for KeyComboParseError
impl RefUnwindSafe for KeyComboParseError
impl Send for KeyComboParseError
impl Sync for KeyComboParseError
impl Unpin for KeyComboParseError
impl UnsafeUnpin for KeyComboParseError
impl UnwindSafe for KeyComboParseError
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.