Struct ibverbs::DeviceList[][src]

pub struct DeviceList(_);

List of available RDMA devices.

Implementations

impl DeviceList[src]

pub fn iter(&self) -> DeviceListIter<'_>

Notable traits for DeviceListIter<'iter>

impl<'iter> Iterator for DeviceListIter<'iter> type Item = Device<'iter>;
[src]

Returns an iterator over all found devices.

pub fn len(&self) -> usize[src]

Returns the number of devices.

pub fn is_empty(&self) -> bool[src]

Returns true if there are any devices.

pub fn get(&self, index: usize) -> Option<Device<'_>>[src]

Returns the device at the given index, or None if out of bounds.

Trait Implementations

impl Drop for DeviceList[src]

impl<'a> IntoIterator for &'a DeviceList[src]

type Item = <DeviceListIter<'a> as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = DeviceListIter<'a>

Which kind of iterator are we turning this into?

impl Send for DeviceList[src]

impl Sync for DeviceList[src]

Auto Trait Implementations

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.