pub enum Event {
Keyboard(KeyboardEvent),
Composition(CompositionEvent),
}Expand description
Either a KeyboardEvent or a CompositionEvent.
Returned by the send_keys function.
Variants§
Keyboard(KeyboardEvent)
Composition(CompositionEvent)
Trait Implementations§
impl Eq for Event
Source§impl From<CompositionEvent> for Event
impl From<CompositionEvent> for Event
Source§fn from(v: CompositionEvent) -> Event
fn from(v: CompositionEvent) -> Event
Converts to this type from the input type.
Source§impl From<KeyboardEvent> for Event
impl From<KeyboardEvent> for Event
Source§fn from(v: KeyboardEvent) -> Event
fn from(v: KeyboardEvent) -> Event
Converts to this type from the input type.
Source§impl Ord for Event
impl Ord for Event
1.21.0 (const: unstable) · 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 PartialOrd for Event
impl PartialOrd for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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