Struct tauri::test::MockGlobalShortcutManager
source · pub struct MockGlobalShortcutManager { /* private fields */ }
Available on crate feature
test
only.Trait Implementations§
source§impl Clone for MockGlobalShortcutManager
impl Clone for MockGlobalShortcutManager
source§fn clone(&self) -> MockGlobalShortcutManager
fn clone(&self) -> MockGlobalShortcutManager
Returns a copy 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 MockGlobalShortcutManager
impl Debug for MockGlobalShortcutManager
source§impl GlobalShortcutManager for MockGlobalShortcutManager
impl GlobalShortcutManager for MockGlobalShortcutManager
source§fn is_registered(&self, accelerator: &str) -> Result<bool>
fn is_registered(&self, accelerator: &str) -> Result<bool>
Whether the application has registered the given
accelerator
.source§fn register<F: Fn() + Send + 'static>(
&mut self,
accelerator: &str,
handler: F
) -> Result<()>
fn register<F: Fn() + Send + 'static>( &mut self, accelerator: &str, handler: F ) -> Result<()>
Register a global shortcut of
accelerator
.source§fn unregister_all(&mut self) -> Result<()>
fn unregister_all(&mut self) -> Result<()>
Unregister all accelerators registered by the manager instance.
Auto Trait Implementations§
impl Freeze for MockGlobalShortcutManager
impl !RefUnwindSafe for MockGlobalShortcutManager
impl Send for MockGlobalShortcutManager
impl Sync for MockGlobalShortcutManager
impl Unpin for MockGlobalShortcutManager
impl !UnwindSafe for MockGlobalShortcutManager
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