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>,
}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>§sensor: Option<SensorDescriptor>§touch: Option<TouchDescriptor>§keyboard: Option<KeyboardDescriptor>§consumer_control: Option<ConsumerControlDescriptor>§device_information: Option<DeviceInformation>Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§fn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
Returns a duplicate 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 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<'a, ___E> Encode<DeviceDescriptor<'static>, ___E> for &'a DeviceDescriptorwhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<DeviceDescriptor<'static>, ___E> for &'a DeviceDescriptorwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DeviceDescriptor<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DeviceDescriptor<'static>>, _: (), ) -> 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> Encode<DeviceDescriptor<'static>, ___E> for DeviceDescriptorwhere
___E: Encoder + ?Sized,
impl<___E> Encode<DeviceDescriptor<'static>, ___E> for DeviceDescriptorwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DeviceDescriptor<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DeviceDescriptor<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<DeviceDescriptor<'de>> for DeviceDescriptor
impl<'de> FromWire<DeviceDescriptor<'de>> for DeviceDescriptor
Source§fn from_wire(wire_: DeviceDescriptor<'de>) -> DeviceDescriptor
fn from_wire(wire_: DeviceDescriptor<'de>) -> DeviceDescriptor
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<DeviceDescriptor<'de>> for DeviceDescriptor
impl<'de> FromWireRef<DeviceDescriptor<'de>> for DeviceDescriptor
Source§fn from_wire_ref(wire: &DeviceDescriptor<'de>) -> DeviceDescriptor
fn from_wire_ref(wire: &DeviceDescriptor<'de>) -> DeviceDescriptor
Converts the given reference to this type.
Source§impl Hash for DeviceDescriptor
impl Hash for DeviceDescriptor
Source§impl Ord for DeviceDescriptor
impl Ord for DeviceDescriptor
Source§fn cmp(&self, other: &DeviceDescriptor) -> Ordering
fn cmp(&self, other: &DeviceDescriptor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DeviceDescriptor
impl PartialEq for DeviceDescriptor
Source§impl PartialOrd for DeviceDescriptor
impl PartialOrd for DeviceDescriptor
impl Eq 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 UnsafeUnpin for DeviceDescriptor
impl UnwindSafe for DeviceDescriptor
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, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§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]