[−][src]Struct usbip::UsbDevice
Represent a USB device
Fields
path: String
bus_id: String
bus_num: u32
dev_num: u32
speed: u32
vendor_id: u16
product_id: u16
device_bcd: u16
device_class: u8
device_subclass: u8
device_protocol: u8
configuration_value: u8
num_configurations: u8
interfaces: 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]
self,
interface_class: u8,
interface_subclass: u8,
interface_protocol: u8,
name: &str,
endpoints: Vec<UsbEndpoint>,
handler: Arc<Mutex<Box<dyn UsbInterfaceHandler + Send>>>
) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UsbDevice
impl Send for UsbDevice
impl Sync for UsbDevice
impl Unpin for UsbDevice
impl UnwindSafe for UsbDevice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,