pub struct Hotkeys<'a> { /* private fields */ }
Expand description
API functions related to hotkeys.
Implementations§
source§impl<'a> Hotkeys<'a>
impl<'a> Hotkeys<'a>
sourcepub async fn trigger_by_name(
&self,
name: &str,
context: Option<&str>
) -> Result<()>
pub async fn trigger_by_name( &self, name: &str, context: Option<&str> ) -> Result<()>
Triggers a hotkey using its name. See Self::list
.
sourcepub async fn trigger_by_sequence(
&self,
id: &str,
modifiers: KeyModifiers
) -> Result<()>
pub async fn trigger_by_sequence( &self, id: &str, modifiers: KeyModifiers ) -> Result<()>
Triggers a hotkey using a sequence of keys.
Auto Trait Implementations§
impl<'a> Freeze for Hotkeys<'a>
impl<'a> !RefUnwindSafe for Hotkeys<'a>
impl<'a> Send for Hotkeys<'a>
impl<'a> Sync for Hotkeys<'a>
impl<'a> Unpin for Hotkeys<'a>
impl<'a> !UnwindSafe for Hotkeys<'a>
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