Struct tracelogging::Opcode
source · #[repr(C)]pub struct Opcode(/* private fields */);
Expand description
Indicates special semantics to be used by the event decoder for grouping and organizing events, e.g. for activities.
For example, the Opcode::ActivityStart opcode indicates the beginning of an activity and the Opcode::ActivityStop indicates the end of an activity. Most events use Opcode::Info (0).
Implementations§
source§impl Opcode
impl Opcode
sourcepub const Info: Opcode = _
pub const Info: Opcode = _
Normal event. The event may set activity_id if it is part of an activity.
sourcepub const ActivityStart: Opcode = _
pub const ActivityStart: Opcode = _
Event indicates the beginning of an activity. The event should set related_id to the id of the parent activity and should set activity_id to the id of the newly-started activity. All subsequent events that use the new activity_id will be considered as part of this activity, up to the corresponding ActivityStop event.
sourcepub const ActivityStop: Opcode = _
pub const ActivityStop: Opcode = _
Event indicates the end of an activity. The event should set activity_id to the id of the activity that is ending and should use the same level and keyword as were used for the corresponding ActivityStart event.
sourcepub const CollectionStart: Opcode = _
pub const CollectionStart: Opcode = _
Data Collection Start event
sourcepub const CollectionStop: Opcode = _
pub const CollectionStop: Opcode = _
Data Collection Stop event
sourcepub const ReservedOpcode241: Opcode = _
pub const ReservedOpcode241: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode242: Opcode = _
pub const ReservedOpcode242: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode243: Opcode = _
pub const ReservedOpcode243: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode244: Opcode = _
pub const ReservedOpcode244: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode245: Opcode = _
pub const ReservedOpcode245: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode246: Opcode = _
pub const ReservedOpcode246: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode247: Opcode = _
pub const ReservedOpcode247: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode248: Opcode = _
pub const ReservedOpcode248: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode249: Opcode = _
pub const ReservedOpcode249: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode250: Opcode = _
pub const ReservedOpcode250: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode251: Opcode = _
pub const ReservedOpcode251: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode252: Opcode = _
pub const ReservedOpcode252: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode253: Opcode = _
pub const ReservedOpcode253: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode254: Opcode = _
pub const ReservedOpcode254: Opcode = _
Reserved for future definition by Microsoft
sourcepub const ReservedOpcode255: Opcode = _
pub const ReservedOpcode255: Opcode = _
Reserved for future definition by Microsoft
sourcepub const Start: Opcode = Self::ActivityStart
pub const Start: Opcode = Self::ActivityStart
Alias for ActivityStart
.
Deprecated - prefer ActivityStart
.
sourcepub const Stop: Opcode = Self::ActivityStop
pub const Stop: Opcode = Self::ActivityStop
Alias for ActivityStop
.
Deprecated - prefer ActivityStop
.
sourcepub const DC_Start: Opcode = Self::CollectionStart
pub const DC_Start: Opcode = Self::CollectionStart
Alias for CollectionStart
.
Deprecated - prefer CollectionStart
.
sourcepub const DC_Stop: Opcode = Self::CollectionStop
pub const DC_Stop: Opcode = Self::CollectionStop
Alias for CollectionStop
.
Deprecated - prefer CollectionStop
.
Trait Implementations§
source§impl Ord for Opcode
impl Ord for Opcode
source§impl PartialEq for Opcode
impl PartialEq for Opcode
source§impl PartialOrd for Opcode
impl PartialOrd for Opcode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more