Struct uhid_virt::CreateParams
source · pub struct CreateParams {
pub name: String,
pub phys: String,
pub uniq: String,
pub bus: Bus,
pub vendor: u32,
pub product: u32,
pub version: u32,
pub country: u32,
pub rd_data: Vec<u8>,
}
Expand description
Contains information about your HID device, sent when UHIDDevice is created
Fields§
§name: String
§phys: String
§uniq: String
§bus: Bus
§vendor: u32
§product: u32
§version: u32
§country: u32
§rd_data: Vec<u8>
Trait Implementations§
source§impl Clone for CreateParams
impl Clone for CreateParams
source§fn clone(&self) -> CreateParams
fn clone(&self) -> CreateParams
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 CreateParams
impl Debug for CreateParams
source§impl PartialEq for CreateParams
impl PartialEq for CreateParams
source§fn eq(&self, other: &CreateParams) -> bool
fn eq(&self, other: &CreateParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateParams
Auto Trait Implementations§
impl RefUnwindSafe for CreateParams
impl Send for CreateParams
impl Sync for CreateParams
impl Unpin for CreateParams
impl UnwindSafe for CreateParams
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