pub struct KeyboardData {
pub code: u16,
pub make: bool,
}
Expand description
A keyboard input event.
Fields§
§code: u16
Keyboard code.
make: bool
True if this is a “make”, false if it is a “break”.
Trait Implementations§
Source§impl Clone for KeyboardData
impl Clone for KeyboardData
Source§fn clone(&self) -> KeyboardData
fn clone(&self) -> KeyboardData
Returns a copy 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 KeyboardData
impl Debug for KeyboardData
Source§impl DefaultEncoding for KeyboardData
impl DefaultEncoding for KeyboardData
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for KeyboardData
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for KeyboardData
Source§impl StructEncodeMetadata<Resource> for KeyboardData
impl StructEncodeMetadata<Resource> for KeyboardData
Source§impl StructMetadata for KeyboardData
impl StructMetadata for KeyboardData
impl Copy for KeyboardData
Auto Trait Implementations§
impl Freeze for KeyboardData
impl RefUnwindSafe for KeyboardData
impl Send for KeyboardData
impl Sync for KeyboardData
impl Unpin for KeyboardData
impl UnwindSafe for KeyboardData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message
].