#[repr(C)]pub struct IoUringCompleteEvent {
pub header: EventHeader,
pub submit_ts_ns: u64,
pub opcode: u8,
pub _padding: [u8; 3],
pub res: i32,
}Expand description
io_uring completion event — emitted when a CQE is posted. Latency = header.timestamp_ns - submit_ts_ns.
Fields§
§header: EventHeader§submit_ts_ns: u64Timestamp (ktime_get_ns) when the SQE was submitted via io_uring_submit_req.
opcode: u8io_uring opcode (IORING_OP_*).
_padding: [u8; 3]§res: i32CQE result — bytes transferred for read/write, or negative errno.
Trait Implementations§
Source§impl Clone for IoUringCompleteEvent
impl Clone for IoUringCompleteEvent
Source§fn clone(&self) -> IoUringCompleteEvent
fn clone(&self) -> IoUringCompleteEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IoUringCompleteEvent
impl Debug for IoUringCompleteEvent
impl Copy for IoUringCompleteEvent
Auto Trait Implementations§
impl Freeze for IoUringCompleteEvent
impl RefUnwindSafe for IoUringCompleteEvent
impl Send for IoUringCompleteEvent
impl Sync for IoUringCompleteEvent
impl Unpin for IoUringCompleteEvent
impl UnsafeUnpin for IoUringCompleteEvent
impl UnwindSafe for IoUringCompleteEvent
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