pub enum CallstackField {
Callstack(Callstack),
CallstackIid(u64),
}Expand description
Callstack associated with this event. This captures the program stack at the time the event occurred, useful for understanding what code path led to the event.
Two variants are supported:
- callstack: Inline callstack data (simpler when trace size is not a concern or callstacks are unique)
- callstack_iid: Reference to an interned Callstack in InternedData (efficient for repeated callstacks)
Only one of these fields should be set.
Variants§
Callstack(Callstack)
Inline callstack data. Use this for simplicity when interning is not needed (e.g., for unique callstacks or when trace size is not critical).
CallstackIid(u64)
Reference to interned Callstack (see InternedData.callstacks). This is the efficient option when callstacks are repeated.
Note: iids always start from 1. A value of 0 is considered “not set”.
Implementations§
Source§impl CallstackField
impl CallstackField
Sourcepub fn merge<B>(
field: &mut Option<CallstackField>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<CallstackField>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
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 CallstackField
impl Clone for CallstackField
Source§fn clone(&self) -> CallstackField
fn clone(&self) -> CallstackField
Returns a duplicate of the value. Read more
1.0.0 · 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 CallstackField
impl Debug for CallstackField
Source§impl PartialEq for CallstackField
impl PartialEq for CallstackField
impl StructuralPartialEq for CallstackField
Auto Trait Implementations§
impl Freeze for CallstackField
impl RefUnwindSafe for CallstackField
impl Send for CallstackField
impl Sync for CallstackField
impl Unpin for CallstackField
impl UnwindSafe for CallstackField
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