pub struct DeviceDescriptor {
pub device_info: Option<DeviceInfo>,
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§
§device_info: Option<DeviceInfo>
This field is removed. Use device_information instead.
mouse: Option<MouseDescriptor>
When mouse
is present the device has a mouse.
sensor: Option<SensorDescriptor>
When sensor
is present the device has a sensor.
touch: Option<TouchDescriptor>
When touch
is present the device has a touch device.
(E.g: Touchscreen, touchpad).
keyboard: Option<KeyboardDescriptor>
When keyboard
is present the device has a keyboard.
consumer_control: Option<ConsumerControlDescriptor>
When consumer_control
is present the device has a ConsumerControl
device.
device_information: Option<DeviceInformation>
device_information
should always be present to help distinguish
between physical devices.
Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§fn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
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 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
Returns the “default value” for a type. Read more
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§impl TypeMarker for DeviceDescriptor
impl TypeMarker for DeviceDescriptor
Source§type Owned = DeviceDescriptor
type Owned = DeviceDescriptor
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
.§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 more§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 DeviceDescriptor
impl ValueTypeMarker for DeviceDescriptor
Source§type Borrowed<'a> = &'a DeviceDescriptor
type Borrowed<'a> = &'a DeviceDescriptor
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for DeviceDescriptor
impl StructuralPartialEq for DeviceDescriptor
Auto Trait Implementations§
impl Freeze for DeviceDescriptor
impl RefUnwindSafe for DeviceDescriptor
impl Send for DeviceDescriptor
impl Sync for DeviceDescriptor
impl Unpin for DeviceDescriptor
impl UnwindSafe for DeviceDescriptor
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)