pub struct Device { /* private fields */ }Expand description
A discovered RDMA device (not yet opened).
Obtained from devices(). The device list is freed when all Device
values are dropped.
Implementations§
Source§impl Device
impl Device
Sourcepub fn transport_type(&self) -> ibv_transport_type
pub fn transport_type(&self) -> ibv_transport_type
The transport type of this device.
Returns IBV_TRANSPORT_IB for InfiniBand/RoCE (rxe, mlx5, etc.)
or IBV_TRANSPORT_IWARP for iWARP (siw, cxgb4, etc.).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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