pub enum CallstackField {
Callstack(InlineCallstack),
CallstackIid(u64),
}Expand description
The captured callstack, bottom frame first. Give it fully inline via
callstack or reference an interned Callstack via callstack_iid.
Variants§
Callstack(InlineCallstack)
Fully-inline callstack: each frame carries its function name and source
location directly, no interning. Simple but larger; prefer
callstack_iid when callstacks repeat or frames need binary/library
information (mappings, build ids, relative pcs).
CallstackIid(u64)
Interned callstack, referencing InternedData.callstacks.
Implementations§
Source§impl CallstackField
impl CallstackField
Sourcepub fn merge(
field: &mut Option<CallstackField>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<CallstackField>, 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 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 (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 CallstackField
impl Debug for CallstackField
Source§impl PartialEq for CallstackField
impl PartialEq for CallstackField
Source§fn eq(&self, other: &CallstackField) -> bool
fn eq(&self, other: &CallstackField) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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