pub enum BindError<A: ActionSet> {
Reserved(Chord),
NotRebindable(A),
NoSuchSlot(usize),
}Expand description
Why LayoutBindings::bind or PadBindings::bind refused.
Variants§
Reserved(Chord)
The chord is fixed (Escape, Delete) or is the key of an action
that can’t be rebound (Debug) in a build with debug tools.
NotRebindable(A)
The action can’t be rebound (Debug).
NoSuchSlot(usize)
Slot index past the last slot.
Trait Implementations§
impl<A: Copy + ActionSet> Copy for BindError<A>
impl<A: Eq + ActionSet> Eq for BindError<A>
Source§impl<A: ActionSet> Error for BindError<A>
impl<A: ActionSet> Error for BindError<A>
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()
impl<A: PartialEq + ActionSet> StructuralPartialEq for BindError<A>
Auto Trait Implementations§
impl<A> Freeze for BindError<A>where
A: Freeze,
impl<A> RefUnwindSafe for BindError<A>where
A: RefUnwindSafe,
impl<A> Send for BindError<A>where
A: Send,
impl<A> Sync for BindError<A>where
A: Sync,
impl<A> Unpin for BindError<A>where
A: Unpin,
impl<A> UnsafeUnpin for BindError<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for BindError<A>where
A: UnwindSafe,
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