pub enum TaskContextField {
TaskContext(TaskContext),
TaskContextIid(u64),
}Expand description
The task (thread / process / async context) this sample is attributed to.
Give it inline via task_context or reference an interned TaskContext via
task_context_iid.
Variants§
TaskContext(TaskContext)
Inline task context.
TaskContextIid(u64)
Interned task context, referencing InternedData.stack_sample_task_contexts.
Implementations§
Source§impl TaskContextField
impl TaskContextField
Sourcepub fn merge(
field: &mut Option<TaskContextField>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<TaskContextField>, 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 TaskContextField
impl Clone for TaskContextField
Source§fn clone(&self) -> TaskContextField
fn clone(&self) -> TaskContextField
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 TaskContextField
Source§impl Debug for TaskContextField
impl Debug for TaskContextField
impl Eq for TaskContextField
Source§impl Hash for TaskContextField
impl Hash for TaskContextField
Source§impl PartialEq for TaskContextField
impl PartialEq for TaskContextField
Source§fn eq(&self, other: &TaskContextField) -> bool
fn eq(&self, other: &TaskContextField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TaskContextField
Auto Trait Implementations§
impl Freeze for TaskContextField
impl RefUnwindSafe for TaskContextField
impl Send for TaskContextField
impl Sync for TaskContextField
impl Unpin for TaskContextField
impl UnsafeUnpin for TaskContextField
impl UnwindSafe for TaskContextField
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