Struct rusb::DeviceList
source · pub struct DeviceList<T: UsbContext> { /* private fields */ }
Expand description
A list of detected USB devices.
Implementations§
source§impl DeviceList<GlobalContext>
impl DeviceList<GlobalContext>
pub fn new() -> Result<DeviceList<GlobalContext>>
source§impl<T: UsbContext> DeviceList<T>
impl<T: UsbContext> DeviceList<T>
pub fn new_with_context(context: T) -> Result<DeviceList<T>>
Trait Implementations§
source§impl<T: UsbContext> Drop for DeviceList<T>
impl<T: UsbContext> Drop for DeviceList<T>
Auto Trait Implementations§
impl<T> Freeze for DeviceList<T>where
T: Freeze,
impl<T> RefUnwindSafe for DeviceList<T>where
T: RefUnwindSafe,
impl<T> !Send for DeviceList<T>
impl<T> !Sync for DeviceList<T>
impl<T> Unpin for DeviceList<T>where
T: Unpin,
impl<T> UnwindSafe for DeviceList<T>where
T: UnwindSafe,
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