Struct io_uring::cqueue::Entry32

source ·
#[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

source

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.

source

pub fn user_data(&self) -> u64

The user data of the request, as set by Entry::user_data on the submission queue event.

source

pub fn flags(&self) -> u32

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.
source

pub fn big_cqe(&self) -> &[u64; 2]

Additional data available in 32-byte completion queue entries (CQEs).

Trait Implementations§

source§

impl Clone for Entry32

source§

fn clone(&self) -> Entry32

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Entry32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EntryMarker for Entry32

source§

const BUILD_FLAGS: u32 = 2_048u32

source§

impl From<Entry32> for Entry

source§

fn from(entry32: Entry32) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.