pub struct Entry128(/* private fields */);Expand description
A 128-byte submission queue entry (SQE), representing a request for an I/O operation.
These can be created via opcodes in opcode.
Implementations§
Source§impl Entry128
impl Entry128
Sourcepub fn clear_flags(self) -> Entry128
pub fn clear_flags(self) -> Entry128
Clear the submission event’s flags.
Sourcepub fn user_data(self, user_data: u64) -> Entry128
pub fn user_data(self, user_data: u64) -> Entry128
Set the user data. This is an application-supplied value that will be passed straight through into the completion queue entry.
Sourcepub fn set_user_data(&mut self, user_data: u64)
pub fn set_user_data(&mut self, user_data: u64)
Set the user data without consuming the entry.
Sourcepub fn personality(self, personality: u16) -> Entry128
pub fn personality(self, personality: u16) -> Entry128
Set the personality of this event. You can obtain a personality using
Submitter::register_personality.
Sourcepub fn get_opcode(&self) -> u32
pub fn get_opcode(&self) -> u32
Get the opcode associated with this entry.
Trait Implementations§
Source§impl EntryMarker for Entry128
impl EntryMarker for Entry128
const BUILD_FLAGS: u32 = 1_024u32
Auto Trait Implementations§
impl Freeze for Entry128
impl RefUnwindSafe for Entry128
impl Send for Entry128
impl Sync for Entry128
impl Unpin for Entry128
impl UnwindSafe for Entry128
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