pub struct DeviceEvent {
pub action: Option<Action>,
pub device_id: Option<u32>,
pub descriptor: Option<DeviceDescriptor>,
/* private fields */
}Expand description
Represents an event associated with a change in the input devices.
Fields§
§action: Option<Action>The action that triggered this event.
device_id: Option<u32>The unique identifier of the device.
descriptor: Option<DeviceDescriptor>The descriptor containing detailed information about the device.
Trait Implementations§
Source§impl Clone for DeviceEvent
impl Clone for DeviceEvent
Source§fn clone(&self) -> DeviceEvent
fn clone(&self) -> DeviceEvent
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 DeviceEvent
impl Debug for DeviceEvent
Source§impl<D: ResourceDialect> Decode<DeviceEvent, D> for DeviceEvent
impl<D: ResourceDialect> Decode<DeviceEvent, D> for DeviceEvent
Source§impl Default for DeviceEvent
impl Default for DeviceEvent
Source§fn default() -> DeviceEvent
fn default() -> DeviceEvent
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<DeviceEvent, D> for &DeviceEvent
impl<D: ResourceDialect> Encode<DeviceEvent, D> for &DeviceEvent
Source§impl PartialEq for DeviceEvent
impl PartialEq for DeviceEvent
impl Persistable for DeviceEvent
impl StructuralPartialEq for DeviceEvent
Source§impl TypeMarker for DeviceEvent
impl TypeMarker for DeviceEvent
Source§type Owned = DeviceEvent
type Owned = DeviceEvent
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for DeviceEvent
impl ValueTypeMarker for DeviceEvent
Source§type Borrowed<'a> = &'a DeviceEvent
type Borrowed<'a> = &'a DeviceEvent
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreAuto Trait Implementations§
impl Freeze for DeviceEvent
impl RefUnwindSafe for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnsafeUnpin for DeviceEvent
impl UnwindSafe for DeviceEvent
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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