pub struct HotKeyEvent {
pub id: u32,
pub state: HotKeyState,
}Fields§
§id: u32§state: HotKeyStateImplementations§
Source§impl HotKeyEvent
impl HotKeyEvent
pub fn id(&self) -> u32
pub fn state(&self) -> HotKeyState
pub fn receiver<'a>() -> &'a HotKeyEventReceiver
pub fn set_event_handler<F: Fn(HotKeyEvent) + Send + Sync + 'static>( f: Option<F>, )
Trait Implementations§
Source§impl Clone for HotKeyEvent
impl Clone for HotKeyEvent
Source§fn clone(&self) -> HotKeyEvent
fn clone(&self) -> HotKeyEvent
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 HotKeyEvent
impl Debug for HotKeyEvent
Source§impl Ord for HotKeyEvent
impl Ord for HotKeyEvent
Source§fn cmp(&self, other: &HotKeyEvent) -> Ordering
fn cmp(&self, other: &HotKeyEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HotKeyEvent
impl PartialEq for HotKeyEvent
Source§impl PartialOrd for HotKeyEvent
impl PartialOrd for HotKeyEvent
impl Copy for HotKeyEvent
impl Eq for HotKeyEvent
impl StructuralPartialEq for HotKeyEvent
Auto Trait Implementations§
impl Freeze for HotKeyEvent
impl RefUnwindSafe for HotKeyEvent
impl Send for HotKeyEvent
impl Sync for HotKeyEvent
impl Unpin for HotKeyEvent
impl UnwindSafe for HotKeyEvent
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