pub enum ModifierError {
Unknown {
word: String,
suggestion: Option<&'static str>,
},
KeyOnNonKeyEvent {
word: String,
event: String,
},
TwoKeys {
first: String,
second: String,
},
SystemKeyNotDelivered {
word: String,
},
PreventOnPassive {
event: String,
},
}Expand description
Why a handler’s qualifiers cannot be accepted.
Variants§
Unknown
A word the catalogue does not name, with the closest one it does.
KeyOnNonKeyEvent
A key or system-key qualifier on an event that carries no key.
TwoKeys
Two different keys on one handler, which waits for one.
SystemKeyNotDelivered
A system-key qualifier. No tier delivers modifier-key state, so the handler could never be told the key was held.
PreventOnPassive
.prevent and .passive on one handler. A passive listener promises never to cancel the
event, so a browser silently ignores its .prevent and runs the default action anyway.
Implementations§
Trait Implementations§
Source§impl Clone for ModifierError
impl Clone for ModifierError
Source§fn clone(&self) -> ModifierError
fn clone(&self) -> ModifierError
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 ModifierError
impl Debug for ModifierError
Source§impl PartialEq for ModifierError
impl PartialEq for ModifierError
impl Eq for ModifierError
impl StructuralPartialEq for ModifierError
Auto Trait Implementations§
impl Freeze for ModifierError
impl RefUnwindSafe for ModifierError
impl Send for ModifierError
impl Sync for ModifierError
impl Unpin for ModifierError
impl UnsafeUnpin for ModifierError
impl UnwindSafe for ModifierError
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
Checks if this value is equivalent to the given key. Read more
§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.