Skip to main content

EntryMarker

Trait EntryMarker 

Source
pub trait EntryMarker:
    Clone
    + Debug
    + From<Entry>
    + Sealed {
    const BUILD_FLAGS: u32;

    // Required methods
    fn set_user_data(&mut self, user_data: u64);
    fn get_user_data(&self) -> u64;
}
Expand description

A submission queue entry (SQE), representing a request for an I/O operation.

This is implemented for Entry and Entry128.

Required Associated Constants§

Required Methods§

Source

fn set_user_data(&mut self, user_data: u64)

Set the application-supplied user data.

Source

fn get_user_data(&self) -> u64

Get the application-supplied user data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl EntryMarker for Entry

Source§

impl EntryMarker for Entry128

Source§

const BUILD_FLAGS: u32 = sys::IORING_SETUP_SQE128