Struct rustix_uring::squeue::Entry
source · #[repr(C)]pub struct Entry(/* private fields */);
Expand description
A 64-byte submission queue entry (SQE), representing a request for an I/O operation.
These can be created via opcodes in opcode
.
Implementations§
source§impl Entry
impl Entry
sourcepub fn user_data(self, user_data: u64) -> Entry
pub fn user_data(self, user_data: u64) -> Entry
Set the user data as a u64
. This is an application-supplied value
that will be passed straight through into the
completion queue entry.
sourcepub fn user_data_ptr(self, user_data: *mut c_void) -> Entry
pub fn user_data_ptr(self, user_data: *mut c_void) -> Entry
Set the user data as a pointer. This is an application-supplied value that will be passed straight through into the completion queue entry.
sourcepub fn get_user_data(&self) -> u64
pub fn get_user_data(&self) -> u64
Get the previously application-supplied user data as a u64
.
sourcepub fn get_user_data_ptr(&self) -> *mut c_void
pub fn get_user_data_ptr(&self) -> *mut c_void
Get the previously application-supplied user data as a pointer.
sourcepub fn personality(self, personality: u16) -> Entry
pub fn personality(self, personality: u16) -> Entry
Set the personality of this event. You can obtain a personality using
Submitter::register_personality
.
Trait Implementations§
source§impl EntryMarker for Entry
impl EntryMarker for Entry
const BUILD_FLAGS: IoringSetupFlags = _
Auto Trait Implementations§
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