#[non_exhaustive]pub enum HotkeyError {
Unavailable,
Denied,
Invalid,
Conflict,
Dismissed,
Failed(String),
}Expand description
why a shortcut was not registered
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
no global shortcuts here (browser, Android, no X server / portal)
Denied
the app’s permissions lack input.global
Invalid
id 0, a key without a name, a description with NUL
Conflict
another program (or another id of this app) holds the chord
Dismissed
the user or the desktop did not bind it (the portal’s dialog)
Failed(String)
the system failed: what it said
Trait Implementations§
Source§impl Clone for HotkeyError
impl Clone for HotkeyError
Source§impl Debug for HotkeyError
impl Debug for HotkeyError
Source§impl Display for HotkeyError
impl Display for HotkeyError
impl Eq for HotkeyError
Source§impl PartialEq for HotkeyError
impl PartialEq for HotkeyError
impl StructuralPartialEq for HotkeyError
Auto Trait Implementations§
impl Forget for HotkeyError
impl Freeze for HotkeyError
impl RefUnwindSafe for HotkeyError
impl Send for HotkeyError
impl Sync for HotkeyError
impl Unpin for HotkeyError
impl UnsafeUnpin for HotkeyError
impl UnwindSafe for HotkeyError
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