[][src]Struct usbip::UsbDevice

pub struct UsbDevice {
    pub path: String,
    pub bus_id: String,
    pub bus_num: u32,
    pub dev_num: u32,
    pub speed: u32,
    pub vendor_id: u16,
    pub product_id: u16,
    pub device_bcd: u16,
    pub device_class: u8,
    pub device_subclass: u8,
    pub device_protocol: u8,
    pub configuration_value: u8,
    pub num_configurations: u8,
    pub interfaces: Vec<UsbInterface>,
    // some fields omitted
}

Represent a USB device

Fields

path: Stringbus_id: Stringbus_num: u32dev_num: u32speed: u32vendor_id: u16product_id: u16device_bcd: u16device_class: u8device_subclass: u8device_protocol: u8configuration_value: u8num_configurations: u8interfaces: Vec<UsbInterface>

Implementations

impl UsbDevice[src]

pub fn new(index: u32) -> Self[src]

pub fn with_interface(
    self,
    interface_class: u8,
    interface_subclass: u8,
    interface_protocol: u8,
    name: &str,
    endpoints: Vec<UsbEndpoint>,
    handler: Arc<Mutex<Box<dyn UsbInterfaceHandler + Send>>>
) -> Self
[src]

Trait Implementations

impl Clone for UsbDevice[src]

impl Default for UsbDevice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.