Skip to main content

BasicQueuePair

Struct BasicQueuePair 

Source
pub struct BasicQueuePair { /* private fields */ }
Expand description

The legacy QueuePair created with QueuePairBuilder::build (ibv_create_qp), which doesn’t support some advanced features (including ibv_wr_* APIs).

Trait Implementations§

Source§

impl Debug for BasicQueuePair

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for BasicQueuePair

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<BasicQueuePair> for GenericQueuePair

Source§

fn from(qp: BasicQueuePair) -> Self

Converts a BasicQueuePair into a GenericQueuePair.

This allows for easy creation of a GenericQueuePair from a BasicQueuePair.

§Examples
let basic_qp = builder.build().unwarp();
let generic_qp: GenericQueuePair = basic_qp.into();
Source§

impl QueuePair for BasicQueuePair

Source§

type Guard<'g> = BasicPostSendGuard<'g> where Self: 'g

Source§

unsafe fn qp(&self) -> NonNull<ibv_qp>

Safety Read more
Source§

fn start_post_send(&mut self) -> Self::Guard<'_>

Starts a post send operation, every QueuePair should hold only one PostSendGuard at the same time. Read more
Source§

fn modify( &mut self, attr: &QueuePairAttribute, ) -> Result<(), ModifyQueuePairError>

Modify the QueuePair’s attributes. Read more
Source§

fn query( &self, mask: QueuePairAttributeMask, ) -> Result<(QueuePairAttribute, QueuePairInitAttribute), QueryQueuePairError>

Query the QueuePair’s attributes. Specify the attributes to query by providing a mask.
Source§

fn state(&self) -> QueuePairState

Get the QueuePair’s state.
Source§

fn qp_number(&self) -> u32

Get the QueuePair’s number.
Source§

fn start_post_recv(&mut self) -> PostRecvGuard<'_>

Starts a post receive operation, every QueuePair should hold only one PostRecvGuard at the same time. Read more
Source§

impl Send for BasicQueuePair

Source§

impl Sync for BasicQueuePair

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.