[][src]Struct rusb::DeviceList

pub struct DeviceList<T: UsbContext> { /* fields omitted */ }

A list of detected USB devices.

Methods

impl 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.

Important traits for Devices<'a, T>
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]

fn drop(&mut self)[src]

Frees the device list.

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.