pub struct DeviceInformation {
pub vendor_id: Option<u32>,
pub product_id: Option<u32>,
pub version: Option<u32>,
pub polling_rate: Option<i64>,
}Expand description
DeviceInformation provides more information about the device and lets a client distinguish between devices (e.g between two touchscreens that come from different vendors). If the device is a HID device, then the id information will come from the device itself. Other, non-HID devices may assign the ids in the driver, so it will be the driver author’s responsibility to assign sensible ids.
Fields§
§vendor_id: Option<u32>§product_id: Option<u32>§version: Option<u32>§polling_rate: Option<i64>Trait Implementations§
Source§impl Clone for DeviceInformation
impl Clone for DeviceInformation
Source§fn clone(&self) -> DeviceInformation
fn clone(&self) -> DeviceInformation
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 DeviceInformation
impl Debug for DeviceInformation
Source§impl Default for DeviceInformation
impl Default for DeviceInformation
Source§fn default() -> DeviceInformation
fn default() -> DeviceInformation
Returns the “default value” for a type. Read more
Source§impl<'a, ___E> Encode<DeviceInformation<'static>, ___E> for &'a DeviceInformationwhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<DeviceInformation<'static>, ___E> for &'a DeviceInformationwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DeviceInformation<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DeviceInformation<'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<DeviceInformation<'static>, ___E> for DeviceInformationwhere
___E: Encoder + ?Sized,
impl<___E> Encode<DeviceInformation<'static>, ___E> for DeviceInformationwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DeviceInformation<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DeviceInformation<'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<DeviceInformation<'de>> for DeviceInformation
impl<'de> FromWire<DeviceInformation<'de>> for DeviceInformation
Source§fn from_wire(wire_: DeviceInformation<'de>) -> DeviceInformation
fn from_wire(wire_: DeviceInformation<'de>) -> DeviceInformation
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<DeviceInformation<'de>> for DeviceInformation
impl<'de> FromWireRef<DeviceInformation<'de>> for DeviceInformation
Source§fn from_wire_ref(wire: &DeviceInformation<'de>) -> DeviceInformation
fn from_wire_ref(wire: &DeviceInformation<'de>) -> DeviceInformation
Converts the given reference to this type.
Source§impl Hash for DeviceInformation
impl Hash for DeviceInformation
Source§impl Ord for DeviceInformation
impl Ord for DeviceInformation
Source§fn cmp(&self, other: &DeviceInformation) -> Ordering
fn cmp(&self, other: &DeviceInformation) -> 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 DeviceInformation
impl PartialEq for DeviceInformation
Source§impl PartialOrd for DeviceInformation
impl PartialOrd for DeviceInformation
impl Copy for DeviceInformation
impl Eq for DeviceInformation
impl StructuralPartialEq for DeviceInformation
Auto Trait Implementations§
impl Freeze for DeviceInformation
impl RefUnwindSafe for DeviceInformation
impl Send for DeviceInformation
impl Sync for DeviceInformation
impl Unpin for DeviceInformation
impl UnsafeUnpin for DeviceInformation
impl UnwindSafe for DeviceInformation
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]