#[repr(C)]pub struct KeyboardEvent {
pub event_time: Uint64,
pub device_id: Uint32,
pub phase: KeyboardEventPhase,
pub hid_usage: Uint32,
pub code_point: Uint32,
pub modifiers: Uint32,
}Expand description
The wire type corresponding to KeyboardEvent.
Fields§
§event_time: Uint64§device_id: Uint32§phase: KeyboardEventPhase§hid_usage: Uint32§code_point: Uint32§modifiers: Uint32Trait Implementations§
Source§impl Clone for KeyboardEvent
impl Clone for KeyboardEvent
Source§fn clone(&self) -> KeyboardEvent
fn clone(&self) -> KeyboardEvent
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 Constrained for KeyboardEvent
impl Constrained for KeyboardEvent
Source§impl Debug for KeyboardEvent
impl Debug for KeyboardEvent
Source§impl<___D> Decode<___D> for KeyboardEventwhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for KeyboardEventwhere
___D: InternalHandleDecoder + ?Sized,
Source§impl<___E> Encode<KeyboardEvent, ___E> for KeyboardEventwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<KeyboardEvent, ___E> for KeyboardEventwhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<KeyboardEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<KeyboardEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, ___E> Encode<KeyboardEvent, ___E> for &'a KeyboardEventwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<KeyboardEvent, ___E> for &'a KeyboardEventwhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<KeyboardEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<KeyboardEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E, T0, T1, T2, T3, T4, T5> Encode<KeyboardEvent, ___E> for KeyboardEvent<T0, T1, T2, T3, T4, T5>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Uint64, ___E>,
T1: Encode<Uint32, ___E>,
T2: Encode<KeyboardEventPhase, ___E>,
T3: Encode<Uint32, ___E>,
T4: Encode<Uint32, ___E>,
T5: Encode<Uint32, ___E>,
impl<___E, T0, T1, T2, T3, T4, T5> Encode<KeyboardEvent, ___E> for KeyboardEvent<T0, T1, T2, T3, T4, T5>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Uint64, ___E>,
T1: Encode<Uint32, ___E>,
T2: Encode<KeyboardEventPhase, ___E>,
T3: Encode<Uint32, ___E>,
T4: Encode<Uint32, ___E>,
T5: Encode<Uint32, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<KeyboardEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<KeyboardEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl FromWire<KeyboardEvent> for KeyboardEvent
impl FromWire<KeyboardEvent> for KeyboardEvent
Source§fn from_wire(wire: KeyboardEvent) -> Self
fn from_wire(wire: KeyboardEvent) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<KeyboardEvent> for KeyboardEvent
impl FromWireRef<KeyboardEvent> for KeyboardEvent
Source§fn from_wire_ref(wire: &KeyboardEvent) -> Self
fn from_wire_ref(wire: &KeyboardEvent) -> Self
Converts the given reference to this type.
Source§impl IntoNatural for KeyboardEvent
impl IntoNatural for KeyboardEvent
Source§type Natural = KeyboardEvent
type Natural = KeyboardEvent
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for KeyboardEvent
impl Wire for KeyboardEvent
Source§type Narrowed<'de> = KeyboardEvent
type Narrowed<'de> = KeyboardEvent
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<Self>)
fn zero_padding(out_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for KeyboardEvent
impl RefUnwindSafe for KeyboardEvent
impl Send for KeyboardEvent
impl Sync for KeyboardEvent
impl Unpin for KeyboardEvent
impl UnsafeUnpin for KeyboardEvent
impl UnwindSafe for KeyboardEvent
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> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]