pub struct Backtrace { /* private fields */ }Expand description
A backtrace is a list of stack frames. These stack frames may have originated from a remote process.
Implementations§
Source§impl Backtrace
impl Backtrace
Sourcepub fn new(thread_id: Pid, frames: Vec<Frame>) -> Self
pub fn new(thread_id: Pid, frames: Vec<Frame>) -> Self
Creates a backtrace from a thread ID and frames.
Sourcepub fn pretty(&self) -> Result<PrettyBacktrace, Error>
pub fn pretty(&self) -> Result<PrettyBacktrace, Error>
Generates a pretty backtrace that includes file and line information for each frame.
Sourcepub fn force_pretty(&self) -> PrettyBacktrace
pub fn force_pretty(&self) -> PrettyBacktrace
Generates a pretty backtrace that may includes file and line information for each frame, if available.
Sourcepub fn iter(&self) -> impl Iterator<Item = &Frame>
pub fn iter(&self) -> impl Iterator<Item = &Frame>
Returns an iterator over the frames in the backtrace.
Sourcepub fn thread_name(&self) -> Option<String>
pub fn thread_name(&self) -> Option<String>
Returns the name of the thread for this backtrace.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Backtrace
impl<'de> Deserialize<'de> for Backtrace
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
impl Eq for Backtrace
Source§impl IntoIterator for Backtrace
impl IntoIterator for Backtrace
impl StructuralPartialEq for Backtrace
Auto Trait Implementations§
impl Freeze for Backtrace
impl RefUnwindSafe for Backtrace
impl Send for Backtrace
impl Sync for Backtrace
impl Unpin for Backtrace
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.