pub enum KeymapError {
CapabilityDenied {
capability: KeymapCapability,
layer: KeymapLayer,
},
InvalidChord(ChordParseError),
}Expand description
Errors returned by the capability-gated bind APIs. Slice 8.h.
Variants§
CapabilityDenied
The supplied capability doesn’t authorise writes to the
requested layer. Surfaced to the host so it can echo
:bind / :unmap errors and so plugin manifests that
claim the wrong scope fail loudly at first registration.
Fields
§
capability: KeymapCapabilityThe capability the caller presented.
§
layer: KeymapLayerThe layer it tried to write (for try_push_layer, the layer
the push would have created).
InvalidChord(ChordParseError)
The supplied chord string couldn’t be parsed.
Trait Implementations§
Source§impl Clone for KeymapError
impl Clone for KeymapError
Source§fn clone(&self) -> KeymapError
fn clone(&self) -> KeymapError
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 KeymapError
impl Debug for KeymapError
Source§impl Display for KeymapError
impl Display for KeymapError
impl Eq for KeymapError
Source§impl Error for KeymapError
impl Error for KeymapError
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 KeymapError
impl PartialEq for KeymapError
impl StructuralPartialEq for KeymapError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.