[−][src]Struct rusb::DeviceList
A list of detected USB devices.
Implementations
impl DeviceList<GlobalContext>
[src]
pub fn new() -> Result<DeviceList<GlobalContext>>
[src]
impl<T: UsbContext> DeviceList<T>
[src]
pub fn new_with_context(context: T) -> Result<DeviceList<T>>
[src]
pub fn len(&self) -> usize
[src]
Returns the number of devices in the list.
pub fn is_empty(&self) -> bool
[src]
Returns true if the list is empty, else returns false.
pub fn iter(&self) -> Devices<'_, T>ⓘ
[src]
Returns an iterator over the devices in the list.
The iterator yields a sequence of Device
objects.
Trait Implementations
impl<T: UsbContext> Drop for DeviceList<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for DeviceList<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for DeviceList<T>
impl<T> !Sync for DeviceList<T>
impl<T> Unpin for DeviceList<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for DeviceList<T> where
T: UnwindSafe,
T: UnwindSafe,
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,
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, 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.
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>,