#[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
.