pub enum KeyParseError {
UnknownKey(String),
UnknownModifier(String),
UnsupportedCode(usize),
DuplicateCustomKey(String),
InvalidPlatform(String),
InvalidShortcutFormat(String),
}Expand description
Keyboard parsing and mapping errors
Variants§
UnknownKey(String)
Unknown key string encountered
UnknownModifier(String)
Unknown modifier string encountered
UnsupportedCode(usize)
Unsupported code value
DuplicateCustomKey(String)
Duplicate custom key name in mapping
InvalidPlatform(String)
Invalid platform specification
InvalidShortcutFormat(String)
Invalid shortcut format
Trait Implementations§
Source§impl Clone for KeyParseError
impl Clone for KeyParseError
Source§fn clone(&self) -> KeyParseError
fn clone(&self) -> KeyParseError
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyParseError
impl Debug for KeyParseError
Source§impl Display for KeyParseError
impl Display for KeyParseError
Source§impl Error for KeyParseError
impl Error for KeyParseError
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 KeyParseError
impl PartialEq for KeyParseError
impl Eq for KeyParseError
impl StructuralPartialEq for KeyParseError
Auto Trait Implementations§
impl Freeze for KeyParseError
impl RefUnwindSafe for KeyParseError
impl Send for KeyParseError
impl Sync for KeyParseError
impl Unpin for KeyParseError
impl UnwindSafe for KeyParseError
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