Enum InputEvent
pub enum InputEvent {
Key {
code: KeyCode,
modifiers: Modifiers,
text: Option<String>,
},
Raw {
bytes: Vec<u8>,
},
Unknown,
}Expand description
A single input event forwarded from the daemon to a client.
Variants§
Key
A decoded keypress.
Fields
Raw
A raw byte sequence (paste, terminal control) with no key decoding.
Unknown
An event kind not defined in this protocol minor version.
Trait Implementations§
§impl Clone for InputEvent
impl Clone for InputEvent
§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 more§impl Debug for InputEvent
impl Debug for InputEvent
§impl<'de> Deserialize<'de> for InputEvent
impl<'de> Deserialize<'de> for InputEvent
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InputEvent
§impl PartialEq for InputEvent
impl PartialEq for InputEvent
§impl Serialize for InputEvent
impl Serialize for InputEvent
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