pub enum KeymapError {
ReadFailed {
source: Error,
},
ParseFailed {
source: Error,
},
UnsupportedVersion(u32),
UnknownPlatform {
index: usize,
value: String,
},
UnknownKeyToken {
index: usize,
token: String,
},
UnknownModifier {
index: usize,
value: String,
},
EmptyKeys {
index: usize,
},
WhenParseFailed {
index: usize,
error: String,
},
WhenValidationFailed {
index: usize,
error: String,
},
}Variants§
ReadFailed
ParseFailed
UnsupportedVersion(u32)
UnknownPlatform
UnknownKeyToken
UnknownModifier
EmptyKeys
WhenParseFailed
WhenValidationFailed
Trait Implementations§
Source§impl Debug for KeymapError
impl Debug for KeymapError
Source§impl Display for KeymapError
impl Display for KeymapError
Source§impl Error for KeymapError
impl Error for KeymapError
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()
Auto Trait Implementations§
impl Freeze for KeymapError
impl !RefUnwindSafe for KeymapError
impl Send for KeymapError
impl Sync for KeymapError
impl Unpin for KeymapError
impl UnsafeUnpin for KeymapError
impl !UnwindSafe for KeymapError
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