pub struct WorkSuccess { /* private fields */ }Expand description
Represents the successful completion of a Work Request.
This struct contains metadata returned by the hardware after an operation finishes successfully.
It is typically extracted from a WorkCompletion.
Implementations§
Source§impl WorkSuccess
impl WorkSuccess
Sourcepub fn immediate_data(&self) -> Option<u32>
pub fn immediate_data(&self) -> Option<u32>
Returns the immediate data (if any) received with this completion.
This value is automatically converted from network byte order (Big Endian) to the host’s native byte order.
Present if the sender used SendWorkRequest::with_immediate
or WriteWorkRequest::with_immediate.
Sourcepub fn gathered_length(&self) -> usize
pub fn gathered_length(&self) -> usize
Returns the number of local bytes modified by this operation.
- Receive — The total bytes written into the local Scatter buffers.
- RDMA Read — The total bytes fetched from remote memory and written to local Scatter buffers.
- Send / RDMA Write — Zero (these operations do not modify local memory during completion).
Trait Implementations§
Source§impl Clone for WorkSuccess
impl Clone for WorkSuccess
Source§fn clone(&self) -> WorkSuccess
fn clone(&self) -> WorkSuccess
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 WorkSuccess
impl Debug for WorkSuccess
impl Copy for WorkSuccess
Auto Trait Implementations§
impl Freeze for WorkSuccess
impl RefUnwindSafe for WorkSuccess
impl Send for WorkSuccess
impl Sync for WorkSuccess
impl Unpin for WorkSuccess
impl UnsafeUnpin for WorkSuccess
impl UnwindSafe for WorkSuccess
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