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]
Notable traits for DeviceListIter<'iter>
impl<'iter> Iterator for DeviceListIter<'iter> type Item = Device<'iter>;
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?
fn into_iter(self) -> Self::IntoIter
[src]
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]
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,
pub 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.
pub 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>,