pub struct WorkCompletion { /* private fields */ }Expand description
Represents the completion of an asynchronous Work Request.
A WorkCompletion is generated by the RDMA hardware and placed into a Completion Queue (CQ).
It corresponds to a previously posted Work Request (Send, Receive, RDMA Write, etc.).
§Structure
- ID — The
wr_idallows you to map this completion back to the specific request posted. - Result — Indicates whether the operation succeeded or failed.
Implementations§
Source§impl WorkCompletion
impl WorkCompletion
Sourcepub fn wr_id(&self) -> u64
pub fn wr_id(&self) -> u64
Returns the 64-bit identifier assigned to the original Work Request. This value is passed through transparently by the hardware.
Sourcepub fn result(&self) -> Result<WorkSuccess, WorkError>
pub fn result(&self) -> Result<WorkSuccess, WorkError>
Returns the outcome of the operation.
Ok(WorkSuccess)— The operation completed successfully. Contains bytes transferred and immediate data.Err(WorkError)— The operation failed. Contains the error status and vendor syndrome.
Trait Implementations§
Source§impl Clone for WorkCompletion
impl Clone for WorkCompletion
Source§fn clone(&self) -> WorkCompletion
fn clone(&self) -> WorkCompletion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkCompletion
impl Debug for WorkCompletion
impl Copy for WorkCompletion
Auto Trait Implementations§
impl Freeze for WorkCompletion
impl RefUnwindSafe for WorkCompletion
impl Send for WorkCompletion
impl Sync for WorkCompletion
impl Unpin for WorkCompletion
impl UnsafeUnpin for WorkCompletion
impl UnwindSafe for WorkCompletion
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