#[non_exhaustive]pub struct ErasedBacktrace { /* private fields */ }Expand description
A serializable, type-erased representation of a backtrace.
Implementations§
Source§impl ErasedBacktrace
impl ErasedBacktrace
Sourcepub fn from_backtrace(bt: &Backtrace) -> Self
pub fn from_backtrace(bt: &Backtrace) -> Self
Create an ErasedBacktrace from a live Backtrace.
Captures every resolved symbol verbatim — including capture machinery, OS/libc entry points, and unresolvable frames. Hiding implementation/platform detail is a render-time concern; this snapshot stays raw so a consumer can still render the full stack later.
Sourcepub fn frames(&self) -> &[ErasedFrame]
pub fn frames(&self) -> &[ErasedFrame]
Returns a slice of all frames.
Trait Implementations§
Source§impl Clone for ErasedBacktrace
impl Clone for ErasedBacktrace
Source§fn clone(&self) -> ErasedBacktrace
fn clone(&self) -> ErasedBacktrace
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 ErasedBacktrace
impl Debug for ErasedBacktrace
Source§impl<'de> Deserialize<'de> for ErasedBacktrace
impl<'de> Deserialize<'de> for ErasedBacktrace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ErasedBacktrace
impl Display for ErasedBacktrace
Source§impl From<&Backtrace> for ErasedBacktrace
Available on crate feature std only.
impl From<&Backtrace> for ErasedBacktrace
Available on crate feature
std only.Source§impl From<Backtrace> for ErasedBacktrace
Available on crate feature std only.
impl From<Backtrace> for ErasedBacktrace
Available on crate feature
std only.Auto Trait Implementations§
impl Freeze for ErasedBacktrace
impl RefUnwindSafe for ErasedBacktrace
impl Send for ErasedBacktrace
impl Sync for ErasedBacktrace
impl Unpin for ErasedBacktrace
impl UnsafeUnpin for ErasedBacktrace
impl UnwindSafe for ErasedBacktrace
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