#[non_exhaustive]
pub struct Backtrace { pub error: Box<Error>, pub frames: Vec<BacktraceFrame>, }
Expand description

A backtrace containing a set of frames representing (in order from innermost to outmost code)

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
error: Box<Error>

The source error which caused this backtrace. This is guaranteed to not itself be a backtrace.

frames: Vec<BacktraceFrame>

The frames which lead to the given error

Implementations

Create a new backtrace from a source error and a set of frames

If the error itself is a Backtrace, the set of frames is appended to the existing set of frames. This ensures Backtrace::error is not itself a Backtrace.

Trait Implementations

Adds an additional frame of context to the backtrace

Adds an additional frame of context to the backtrace including a message, file name, and line number.

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.