pub struct KeystrokeNotification {
pub characters: Option<String>,
pub characters_ignoring_modifiers: Option<String>,
pub modifiers: Vec<i32>,
pub key_code: Option<i32>,
pub session: Option<String>,
pub action: Option<i32>,
}Fields§
§characters: Option<String>§characters_ignoring_modifiers: Option<String>§modifiers: Vec<i32>§key_code: Option<i32>§session: Option<String>§action: Option<i32>Implementations§
Source§impl KeystrokeNotification
impl KeystrokeNotification
Sourcepub fn characters(&self) -> &str
pub fn characters(&self) -> &str
Returns the value of characters, or the default value if characters is unset.
Sourcepub fn characters_ignoring_modifiers(&self) -> &str
pub fn characters_ignoring_modifiers(&self) -> &str
Returns the value of characters_ignoring_modifiers, or the default value if characters_ignoring_modifiers is unset.
Sourcepub fn modifiers(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Modifiers>>
pub fn modifiers( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Modifiers>>
Returns an iterator which yields the valid enum values contained in modifiers.
Sourcepub fn push_modifiers(&mut self, value: Modifiers)
pub fn push_modifiers(&mut self, value: Modifiers)
Appends the provided enum value to modifiers.
Sourcepub fn key_code(&self) -> i32
pub fn key_code(&self) -> i32
Returns the value of key_code, or the default value if key_code is unset.
Sourcepub fn session(&self) -> &str
pub fn session(&self) -> &str
Returns the value of session, or the default value if session is unset.
Sourcepub fn action(&self) -> Action
pub fn action(&self) -> Action
Returns the enum value of action, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_action(&mut self, value: Action)
pub fn set_action(&mut self, value: Action)
Sets action to the provided enum value.
Trait Implementations§
Source§impl Clone for KeystrokeNotification
impl Clone for KeystrokeNotification
Source§fn clone(&self) -> KeystrokeNotification
fn clone(&self) -> KeystrokeNotification
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 KeystrokeNotification
impl Debug for KeystrokeNotification
Source§impl Default for KeystrokeNotification
impl Default for KeystrokeNotification
Source§impl Message for KeystrokeNotification
impl Message for KeystrokeNotification
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for KeystrokeNotification
impl PartialEq for KeystrokeNotification
impl StructuralPartialEq for KeystrokeNotification
Auto Trait Implementations§
impl Freeze for KeystrokeNotification
impl RefUnwindSafe for KeystrokeNotification
impl Send for KeystrokeNotification
impl Sync for KeystrokeNotification
impl Unpin for KeystrokeNotification
impl UnsafeUnpin for KeystrokeNotification
impl UnwindSafe for KeystrokeNotification
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