#[repr(C)]pub struct Entry32(/* private fields */);
Expand description
A 32-byte completion queue entry (CQE), representing a complete I/O operation.
Implementations§
Source§impl Entry32
impl Entry32
Sourcepub fn result(&self) -> Result<u32, Errno>
pub fn result(&self) -> Result<u32, Errno>
The result of the operation. If the operation succeeded, this is the operation-specific
return value. For example, for a Read
operation this is
equivalent to the return value of the read(2)
system call. If the operation failed, the
errno is returned.
Sourcepub fn raw_result(&self) -> i32
pub fn raw_result(&self) -> i32
The operation-specific result code. For example, for a Read
operation this is equivalent to the return value of the read(2)
system call.
Sourcepub fn user_data(&self) -> io_uring_user_data
pub fn user_data(&self) -> io_uring_user_data
The user data of the request, as set by
Entry::user_data
on the submission queue event.
Sourcepub fn flags(&self) -> Flags
pub fn flags(&self) -> Flags
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.
Trait Implementations§
Source§impl EntryMarker for Entry32
impl EntryMarker for Entry32
const BUILD_FLAGS: IoringSetupFlags = sys::IoringSetupFlags::CQE32
Auto Trait Implementations§
impl Freeze for Entry32
impl RefUnwindSafe for Entry32
impl !Send for Entry32
impl !Sync for Entry32
impl Unpin for Entry32
impl UnwindSafe for Entry32
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