pub enum GenericQueuePair {
Basic(BasicQueuePair),
Extended(ExtendedQueuePair),
}Expand description
A unified interface for BasicQueuePair and ExtendedQueuePair, implemented with enum
dispatching.
Variants§
Basic(BasicQueuePair)
Variant for a Basic Queue Pair
Extended(ExtendedQueuePair)
Variant for an Extended Queue Pair
Trait Implementations§
Source§impl Debug for GenericQueuePair
impl Debug for GenericQueuePair
Source§impl From<BasicQueuePair> for GenericQueuePair
impl From<BasicQueuePair> for GenericQueuePair
Source§impl From<ExtendedQueuePair> for GenericQueuePair
impl From<ExtendedQueuePair> for GenericQueuePair
Source§impl QueuePair for GenericQueuePair
impl QueuePair for GenericQueuePair
Source§type Guard<'g> = GenericPostSendGuard<'g>
where
Self: 'g
type Guard<'g> = GenericPostSendGuard<'g> where Self: 'g
Source§fn modify(
&mut self,
attr: &QueuePairAttribute,
) -> Result<(), ModifyQueuePairError>
fn modify( &mut self, attr: &QueuePairAttribute, ) -> Result<(), ModifyQueuePairError>
Source§fn start_post_recv(&mut self) -> PostRecvGuard<'_>
fn start_post_recv(&mut self) -> PostRecvGuard<'_>
Starts a post receive operation, every
QueuePair should hold only one PostRecvGuard
at the same time. Read moreSource§fn start_post_send(&mut self) -> Self::Guard<'_>
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 moreSource§fn query(
&self,
mask: QueuePairAttributeMask,
) -> Result<(QueuePairAttribute, QueuePairInitAttribute), QueryQueuePairError>
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
fn state(&self) -> QueuePairState
Get the QueuePair’s state.
Auto Trait Implementations§
impl Freeze for GenericQueuePair
impl RefUnwindSafe for GenericQueuePair
impl Send for GenericQueuePair
impl Sync for GenericQueuePair
impl Unpin for GenericQueuePair
impl UnsafeUnpin for GenericQueuePair
impl UnwindSafe for GenericQueuePair
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