pub enum PrimaryDescriptorField {
PrimaryDescriptor(CounterDescriptor),
PrimaryDescriptorIid(u64),
}Expand description
The sampling timebase: the counter this sample’s weight is measured against. Set one of the two; may be omitted entirely if declared in StackSampleDefaults.primary_descriptor.
Variants§
PrimaryDescriptor(CounterDescriptor)
Inline timebase descriptor.
PrimaryDescriptorIid(u64)
Interned timebase descriptor, referencing InternedData.stack_sample_counter_descriptors.
Implementations§
Source§impl PrimaryDescriptorField
impl PrimaryDescriptorField
Sourcepub fn merge(
field: &mut Option<PrimaryDescriptorField>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<PrimaryDescriptorField>, 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 PrimaryDescriptorField
impl Clone for PrimaryDescriptorField
Source§fn clone(&self) -> PrimaryDescriptorField
fn clone(&self) -> PrimaryDescriptorField
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 moreSource§impl Debug for PrimaryDescriptorField
impl Debug for PrimaryDescriptorField
impl Eq for PrimaryDescriptorField
Source§impl Hash for PrimaryDescriptorField
impl Hash for PrimaryDescriptorField
Source§impl PartialEq for PrimaryDescriptorField
impl PartialEq for PrimaryDescriptorField
Source§fn eq(&self, other: &PrimaryDescriptorField) -> bool
fn eq(&self, other: &PrimaryDescriptorField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrimaryDescriptorField
Auto Trait Implementations§
impl Freeze for PrimaryDescriptorField
impl RefUnwindSafe for PrimaryDescriptorField
impl Send for PrimaryDescriptorField
impl Sync for PrimaryDescriptorField
impl Unpin for PrimaryDescriptorField
impl UnsafeUnpin for PrimaryDescriptorField
impl UnwindSafe for PrimaryDescriptorField
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