pub struct Backtrace {
pub entries: Vec<BacktraceEntry>,
pub total_omitted_frames: usize,
}Expand description
Stack backtrace information.
Contains a collection of stack frames representing the call stack at the point where a report was created.
§Examples
Capture a backtrace manually:
use rootcause_backtrace::{Backtrace, BacktraceFilter};
let backtrace = Backtrace::capture(&BacktraceFilter::DEFAULT);
if let Some(bt) = backtrace {
println!("Captured {} frames", bt.entries.len());
}Fields§
§entries: Vec<BacktraceEntry>The entries in the backtrace, ordered from most recent to oldest.
total_omitted_frames: usizeTotal number of frames that were omitted due to filtering.
Implementations§
Trait Implementations§
Source§impl<const SHOW_FULL_PATH: bool> AttachmentHandler<Backtrace> for BacktraceHandler<SHOW_FULL_PATH>
impl<const SHOW_FULL_PATH: bool> AttachmentHandler<Backtrace> for BacktraceHandler<SHOW_FULL_PATH>
Source§fn display(value: &Backtrace, f: &mut Formatter<'_>) -> Result
fn display(value: &Backtrace, f: &mut Formatter<'_>) -> Result
Formats the attachment using display-style formatting. Read more
Source§fn debug(value: &Backtrace, formatter: &mut Formatter<'_>) -> Result
fn debug(value: &Backtrace, formatter: &mut Formatter<'_>) -> Result
Formats the attachment using debug-style formatting. Read more
Source§fn preferred_formatting_style(
backtrace: &Backtrace,
_report_formatting_function: FormattingFunction,
) -> AttachmentFormattingStyle
fn preferred_formatting_style( backtrace: &Backtrace, _report_formatting_function: FormattingFunction, ) -> AttachmentFormattingStyle
Specifies the preferred formatting style and placement for this
attachment. Read more
Auto Trait Implementations§
impl Freeze for Backtrace
impl RefUnwindSafe for Backtrace
impl Send for Backtrace
impl Sync for Backtrace
impl Unpin for Backtrace
impl UnwindSafe for Backtrace
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