Struct tracelogging::Opcode
source · [−]#[repr(C)]pub struct Opcode(_);
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::Start opcode indicates the beginning of an activity and the Opcode::Stop indicates the end of an activity. Most events use Opcode::Info (0).
Implementations
sourceimpl 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 Start: Opcode = _
pub const Start: 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 Stop event.
sourcepub const Stop: Opcode = _
pub const Stop: 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 Start 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
Trait Implementations
sourceimpl Ord for Opcode
impl Ord for Opcode
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Opcode> for Opcode
impl PartialEq<Opcode> for Opcode
sourceimpl PartialOrd<Opcode> for Opcode
impl PartialOrd<Opcode> for Opcode
sourcefn partial_cmp(&self, other: &Opcode) -> Option<Ordering>
fn partial_cmp(&self, other: &Opcode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Opcode
impl Eq for Opcode
impl StructuralEq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more