pub struct DeviceDescriptor {
pub mouse: Option<MouseDescriptor>,
pub sensor: Option<SensorDescriptor>,
pub touch: Option<TouchDescriptor>,
pub keyboard: Option<KeyboardDescriptor>,
pub consumer_control: Option<ConsumerControlDescriptor>,
pub device_information: Option<DeviceInformation>,
/* private fields */
}Expand description
DeviceDescriptor describes a physical input device. Some physical devices may
send multiple types of reports (E.g: a physical touchscreen can send touch and
stylus reports, so it will have both a TouchDescriptor and a StylusDescriptor).
Fields§
§mouse: Option<MouseDescriptor>Describes the mouse part of the device.
Optional. Present iff the device is/has a mouse.
sensor: Option<SensorDescriptor>Describes the sensor part of the device.
Optional. Present iff the device is/has a sensor.
touch: Option<TouchDescriptor>Describes the touch part (such as a touchscreen or touchpad) of the device.
Optional. Present iff the device is/has a touch device.
keyboard: Option<KeyboardDescriptor>Describes the keyboard part of the device.
Optional. Present iff the device is/has a keyboard.
consumer_control: Option<ConsumerControlDescriptor>Describes the consumer control part of the device.
Optional. Present iff the device is/has a consumer control device.
device_information: Option<DeviceInformation>Identifies the physical device.
Required.
Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§fn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceDescriptor
impl Debug for DeviceDescriptor
Source§impl<D: ResourceDialect> Decode<DeviceDescriptor, D> for DeviceDescriptor
impl<D: ResourceDialect> Decode<DeviceDescriptor, D> for DeviceDescriptor
Source§impl Default for DeviceDescriptor
impl Default for DeviceDescriptor
Source§fn default() -> DeviceDescriptor
fn default() -> DeviceDescriptor
Source§impl<D: ResourceDialect> Encode<DeviceDescriptor, D> for &DeviceDescriptor
impl<D: ResourceDialect> Encode<DeviceDescriptor, D> for &DeviceDescriptor
Source§impl PartialEq for DeviceDescriptor
impl PartialEq for DeviceDescriptor
Source§fn eq(&self, other: &DeviceDescriptor) -> bool
fn eq(&self, other: &DeviceDescriptor) -> bool
self and other values to be equal, and is used by ==.Source§impl TypeMarker for DeviceDescriptor
impl TypeMarker for DeviceDescriptor
Source§type Owned = DeviceDescriptor
type Owned = DeviceDescriptor
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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 DeviceDescriptor
impl ValueTypeMarker for DeviceDescriptor
Source§type Borrowed<'a> = &'a DeviceDescriptor
type Borrowed<'a> = &'a DeviceDescriptor
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more