#[repr(C)]pub struct DataLoadEvent {
pub pid: u32,
pub tid: u32,
pub read_bytes: u64,
pub latency_ns: u64,
pub io_type: u8,
pub _pad: [u8; 7],
}Expand description
Dataset I/O event from DataLoader worker threads. Layout must match struct zernel_dataload_event in common.h.
Fields§
§pid: u32§tid: u32§read_bytes: u64§latency_ns: u64§io_type: u8§_pad: [u8; 7]Implementations§
Source§impl DataLoadEvent
impl DataLoadEvent
pub fn io_type_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for DataLoadEvent
impl Clone for DataLoadEvent
Source§fn clone(&self) -> DataLoadEvent
fn clone(&self) -> DataLoadEvent
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 DataLoadEvent
impl Debug for DataLoadEvent
Auto Trait Implementations§
impl Freeze for DataLoadEvent
impl RefUnwindSafe for DataLoadEvent
impl Send for DataLoadEvent
impl Sync for DataLoadEvent
impl Unpin for DataLoadEvent
impl UnwindSafe for DataLoadEvent
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