#[repr(C)]pub struct Entry(/* private fields */);
Expand description
A 16-byte completion queue entry (CQE), representing a complete I/O operation.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn result(&self) -> i32
pub fn 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 user_data_u64(&self) -> u64
pub fn user_data_u64(&self) -> u64
The user data of the request, as set by
Entry::user_data
on the submission queue event.
Sourcepub fn user_data_ptr(&self) -> *mut c_void
pub fn user_data_ptr(&self) -> *mut c_void
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§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl !Send for Entry
impl !Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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