pub enum BacktraceEntry {
Frame(Frame),
OmittedFrames {
count: usize,
skipped_crate: &'static str,
},
}Expand description
A single entry in a stack backtrace.
§Examples
use rootcause_backtrace::{Backtrace, BacktraceEntry, BacktraceFilter};
if let Some(bt) = Backtrace::capture(&BacktraceFilter::DEFAULT) {
for entry in &bt.entries {
match entry {
BacktraceEntry::Frame(_) => { /* a real call */ }
BacktraceEntry::OmittedFrames { count, skipped_crate } => {
println!("Omitted {count} frames from {skipped_crate}");
}
}
}
}Variants§
Trait Implementations§
Source§impl Clone for BacktraceEntry
impl Clone for BacktraceEntry
Source§fn clone(&self) -> BacktraceEntry
fn clone(&self) -> BacktraceEntry
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 moreAuto Trait Implementations§
impl Freeze for BacktraceEntry
impl RefUnwindSafe for BacktraceEntry
impl Send for BacktraceEntry
impl Sync for BacktraceEntry
impl Unpin for BacktraceEntry
impl UnsafeUnpin for BacktraceEntry
impl UnwindSafe for BacktraceEntry
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