#[repr(C)]pub struct TraceEntryHead {
pub thread: ObjID,
pub sctx: ObjID,
pub mctx: ObjID,
pub cpuid: u64,
pub time: TimeSpan,
pub event: u64,
pub kind: TraceKind,
pub extra_or_next: ObjID,
pub flags: TraceEntryFlags,
}
Expand description
Header for a trace entry. This is always present, and may be optionally followed by additional
data, if the flags
field contains the HAS_DATA
flag.
Fields§
§thread: ObjID
The ID of the thread that generated this trace entry.
sctx: ObjID
The ID of the security context that generated this trace entry.
mctx: ObjID
The ID of the memory context that generated this trace entry.
cpuid: u64
The ID of the CPU that generated this trace entry.
time: TimeSpan
The time at which this trace entry was generated.
event: u64
The event that generated this trace entry.
kind: TraceKind
The kind of trace entry.
extra_or_next: ObjID
Provided extra data from the [TraceSpec] that matched this entry, or if NEXT_OBJECT is set, the ID of the next object.
flags: TraceEntryFlags
Flags indicating the type of trace entry.
Implementations§
Source§impl TraceEntryHead
impl TraceEntryHead
Sourcepub fn new_next_object(id: ObjID) -> Self
pub fn new_next_object(id: ObjID) -> Self
Create a new trace entry head with the NEXT_OBJECT flag set.
Trait Implementations§
Source§impl Clone for TraceEntryHead
impl Clone for TraceEntryHead
Source§fn clone(&self) -> TraceEntryHead
fn clone(&self) -> TraceEntryHead
Returns a copy 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 TraceEntryHead
impl Debug for TraceEntryHead
Source§impl Default for TraceEntryHead
impl Default for TraceEntryHead
Source§fn default() -> TraceEntryHead
fn default() -> TraceEntryHead
Returns the “default value” for a type. Read more
impl Copy for TraceEntryHead
Auto Trait Implementations§
impl Freeze for TraceEntryHead
impl ObjSafe for TraceEntryHead
impl RefUnwindSafe for TraceEntryHead
impl Send for TraceEntryHead
impl Sync for TraceEntryHead
impl Unpin for TraceEntryHead
impl UnwindSafe for TraceEntryHead
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