pub enum InputEvent {
Key(Key),
Paste(Vec<u8>),
}Expand description
A high-level input event handed to the host (the napi push_input
consumer). Mirrors ink’s InputEvent (Key from parseKeypress, plus the
{paste} arm), composed from the two ported layers.
Variants§
Key(Key)
A decoded key/text segment.
Paste(Vec<u8>)
A bracketed-paste payload, delivered verbatim as raw bytes.
Trait Implementations§
Source§impl Clone for InputEvent
impl Clone for InputEvent
Source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputEvent
impl Debug for InputEvent
impl Eq for InputEvent
Source§impl PartialEq for InputEvent
impl PartialEq for InputEvent
Source§fn eq(&self, other: &InputEvent) -> bool
fn eq(&self, other: &InputEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputEvent
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnsafeUnpin for InputEvent
impl UnwindSafe for InputEvent
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