pub struct DeviceList { /* private fields */ }Expand description
Owned list of available ibverbs RDMA devices.
This type wraps the device list returned by ibv_get_device_list.
The underlying resources are released automatically when the value
is dropped.
Individual devices can be accessed via iteration or indexing using
DeviceList::iter or DeviceList::get.
Implementations§
Source§impl DeviceList
impl DeviceList
Sourcepub fn iter(&self) -> DeviceListIter<'_> ⓘ
pub fn iter(&self) -> DeviceListIter<'_> ⓘ
Returns an iterator over all available devices.
Trait Implementations§
Source§impl Debug for DeviceList
impl Debug for DeviceList
Source§impl Drop for DeviceList
impl Drop for DeviceList
Source§impl<'a> IntoIterator for &'a DeviceList
impl<'a> IntoIterator for &'a DeviceList
impl Send for DeviceList
SAFETY: libibverbs components are thread safe.
impl Sync for DeviceList
SAFETY: libibverbs components are thread safe.
Auto Trait Implementations§
impl Freeze for DeviceList
impl RefUnwindSafe for DeviceList
impl Unpin for DeviceList
impl UnsafeUnpin for DeviceList
impl UnwindSafe for DeviceList
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