pub struct ProcEventHeader {
pub cpu: u32,
pub timestamp_ns: u64,
pub event: ProcEvent,
}
Expand description
Header for process event messages.
Fields§
§cpu: u32
The CPU on which the event occurred.
timestamp_ns: u64
Nanosecond timestamp of the event.
event: ProcEvent
The process event data.
Trait Implementations§
Source§impl Debug for ProcEventHeader
impl Debug for ProcEventHeader
Source§impl FromBytesWithInput for ProcEventHeader
impl FromBytesWithInput for ProcEventHeader
Source§impl Size for ProcEventHeader
impl Size for ProcEventHeader
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of the payload and align it to
the required netlink byte alignment.
Auto Trait Implementations§
impl Freeze for ProcEventHeader
impl RefUnwindSafe for ProcEventHeader
impl Send for ProcEventHeader
impl Sync for ProcEventHeader
impl Unpin for ProcEventHeader
impl UnwindSafe for ProcEventHeader
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