#[repr(C)]
pub struct Entry(_);
Expand description
A 16-byte completion queue entry (CQE), representing a complete I/O operation.
The operation-specific result code. For example, for a Read
operation this is equivalent to the return value of the read(2)
system call.
241
242
243
244
245
246
247
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Entry")
.field("result", &self.result())
.field("user_data", &self.user_data())
.field("flags", &self.flags())
.finish()
}
The user data of the request, as set by
Entry::user_data
on the submission queue event.
241
242
243
244
245
246
247
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Entry")
.field("result", &self.result())
.field("user_data", &self.user_data())
.field("flags", &self.flags())
.finish()
}
Metadata related to the operation.
This is currently used for:
- Storing the selected buffer ID, if one was selected. See
BUFFER_SELECT
for more info.
241
242
243
244
245
246
247
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Entry")
.field("result", &self.result())
.field("user_data", &self.user_data())
.field("flags", &self.flags())
.finish()
}
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.