pub struct CompletionQueue { /* private fields */ }Expand description
An RDMA Completion Queue (ibv_cq).
Implementations§
Source§impl CompletionQueue
impl CompletionQueue
Sourcepub fn poll(&self, wc_buf: &mut [WorkCompletion]) -> Result<usize>
pub fn poll(&self, wc_buf: &mut [WorkCompletion]) -> Result<usize>
Poll up to wc_buf.len() completions.
Returns the number of completions written to wc_buf.
Sourcepub fn req_notify(&self, solicited_only: bool) -> Result<()>
pub fn req_notify(&self, solicited_only: bool) -> Result<()>
Request notification for the next completion.
Sourcepub fn with_comp_channel(
ctx: Arc<Context>,
cqe: i32,
channel: &CompletionChannel,
) -> Result<Arc<Self>>
pub fn with_comp_channel( ctx: Arc<Context>, cqe: i32, channel: &CompletionChannel, ) -> Result<Arc<Self>>
Create a CQ associated with a completion channel.
When completions arrive, the channel’s fd becomes readable,
enabling async notification via epoll/kqueue.
Trait Implementations§
Source§impl Drop for CompletionQueue
impl Drop for CompletionQueue
impl Send for CompletionQueue
impl Sync for CompletionQueue
Auto Trait Implementations§
impl Freeze for CompletionQueue
impl RefUnwindSafe for CompletionQueue
impl Unpin for CompletionQueue
impl UnsafeUnpin for CompletionQueue
impl UnwindSafe for CompletionQueue
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