pub struct QueuePair { /* private fields */ }Expand description
An RDMA Queue Pair (ibv_qp).
Implementations§
Source§impl QueuePair
impl QueuePair
Sourcepub fn to_init(
&self,
port_num: u8,
pkey_index: u16,
access_flags: u32,
) -> Result<()>
pub fn to_init( &self, port_num: u8, pkey_index: u16, access_flags: u32, ) -> Result<()>
Transition QP to INIT state.
Sourcepub fn to_rtr(
&self,
dest_qp_num: u32,
rq_psn: u32,
dgid: &ibv_gid,
port_num: u8,
) -> Result<()>
pub fn to_rtr( &self, dest_qp_num: u32, rq_psn: u32, dgid: &ibv_gid, port_num: u8, ) -> Result<()>
Transition QP to RTR state (for RC QPs).
dest_qp_num: remote QP number.
rq_psn: starting PSN for receive.
dgid: destination GID.
port_num: local port.
Sourcepub fn post_recv(&self, wr: &mut RecvWr) -> Result<()>
pub fn post_recv(&self, wr: &mut RecvWr) -> Result<()>
Post a receive work request (legacy API).
Sourcepub fn query(&self, attr_mask: u32) -> Result<(ibv_qp_attr, ibv_qp_init_attr)>
pub fn query(&self, attr_mask: u32) -> Result<(ibv_qp_attr, ibv_qp_init_attr)>
Query the QP.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueuePair
impl RefUnwindSafe for QueuePair
impl Unpin for QueuePair
impl UnsafeUnpin for QueuePair
impl UnwindSafe for QueuePair
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