[][src]Struct failure::Backtrace

pub struct Backtrace { /* fields omitted */ }

A Backtrace.

This is an opaque wrapper around the backtrace provided by libbacktrace. A variety of optimizations have been performed to avoid unnecessary or ill-advised work:

Even with these optimizations, including a backtrace in your failure may not be appropriate to your use case. You are not required to put a backtrace in a custom Fail type.

Methods

impl Backtrace[src]

pub fn new() -> Backtrace[src]

Constructs a new backtrace. This will only create a real backtrace if the crate is compiled in std mode and the RUST_BACKTRACE environmental variable is activated.

Trait Implementations

impl Default for Backtrace[src]

impl Display for Backtrace[src]

impl Debug for Backtrace[src]

Auto Trait Implementations

impl Unpin for Backtrace

impl Sync for Backtrace

impl Send for Backtrace

impl UnwindSafe for Backtrace

impl !RefUnwindSafe for Backtrace

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]