pub enum ExecutionContextField {
ExecutionContext(ExecutionContext),
ExecutionContextIid(u64),
}Expand description
The execution state (cpu, privilege mode) at sample time. Absent for
samplers that observe off-CPU tasks. Give it inline via execution_context
or reference an interned ExecutionContext via execution_context_iid.
Variants§
ExecutionContext(ExecutionContext)
Inline execution context.
ExecutionContextIid(u64)
Interned execution context, referencing InternedData.stack_sample_execution_contexts.
Implementations§
Source§impl ExecutionContextField
impl ExecutionContextField
Sourcepub fn merge(
field: &mut Option<ExecutionContextField>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<ExecutionContextField>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for ExecutionContextField
impl Clone for ExecutionContextField
Source§fn clone(&self) -> ExecutionContextField
fn clone(&self) -> ExecutionContextField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExecutionContextField
Source§impl Debug for ExecutionContextField
impl Debug for ExecutionContextField
impl Eq for ExecutionContextField
Source§impl Hash for ExecutionContextField
impl Hash for ExecutionContextField
Source§impl PartialEq for ExecutionContextField
impl PartialEq for ExecutionContextField
Source§fn eq(&self, other: &ExecutionContextField) -> bool
fn eq(&self, other: &ExecutionContextField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExecutionContextField
Auto Trait Implementations§
impl Freeze for ExecutionContextField
impl RefUnwindSafe for ExecutionContextField
impl Send for ExecutionContextField
impl Sync for ExecutionContextField
impl Unpin for ExecutionContextField
impl UnsafeUnpin for ExecutionContextField
impl UnwindSafe for ExecutionContextField
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