pub struct Manager {}Expand description
Manager object maintains libusb context and provides methods for connecting to matching devices
Implementations§
Source§impl Manager
impl Manager
Sourcepub fn devices() -> Result<DeviceList<UsbContext>, Error>
pub fn devices() -> Result<DeviceList<UsbContext>, Error>
Fetch a libusb device list (for filtering and connecting to devices)
pub fn devices_filtered( filter: Filter, ) -> Result<Vec<(UsbDevice<UsbContext>, DeviceDescriptor)>, Error>
pub fn device( filter: Filter, index: usize, ) -> Result<(UsbDevice<UsbContext>, DeviceDescriptor), Error>
Auto Trait Implementations§
impl Freeze for Manager
impl RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl UnsafeUnpin for Manager
impl UnwindSafe for Manager
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