Struct usbip::UsbInterface
source · pub struct UsbInterface {
pub interface_class: u8,
pub interface_subclass: u8,
pub interface_protocol: u8,
pub endpoints: Vec<UsbEndpoint>,
pub string_interface: u8,
pub class_specific_descriptor: Vec<u8>,
pub handler: Arc<Mutex<Box<dyn UsbInterfaceHandler + Send>>>,
}
Expand description
Represent a USB interface
Fields§
§interface_class: u8
§interface_subclass: u8
§interface_protocol: u8
§endpoints: Vec<UsbEndpoint>
§string_interface: u8
§class_specific_descriptor: Vec<u8>
§handler: Arc<Mutex<Box<dyn UsbInterfaceHandler + Send>>>
Trait Implementations§
source§impl Clone for UsbInterface
impl Clone for UsbInterface
source§fn clone(&self) -> UsbInterface
fn clone(&self) -> UsbInterface
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 moreAuto Trait Implementations§
impl RefUnwindSafe for UsbInterface
impl Send for UsbInterface
impl Sync for UsbInterface
impl Unpin for UsbInterface
impl UnwindSafe for UsbInterface
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