pub struct ShortcutHandle { /* private fields */ }Expand description
Handle returned by use_keyboard_shortcut.
Outside a #[component] scope, dropping the handle unregisters the shortcut immediately.
Inside a #[component] body, lifetime is bound to the component hook slot so dropping the
handle at the end of render keeps the shortcut active until component unmount.
Auto Trait Implementations§
impl !Send for ShortcutHandle
impl !Sync for ShortcutHandle
impl Forget for ShortcutHandle
impl Freeze for ShortcutHandle
impl Move for ShortcutHandle
impl RefUnwindSafe for ShortcutHandle
impl Unpin for ShortcutHandle
impl UnsafeUnpin for ShortcutHandle
impl UnwindSafe for ShortcutHandle
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