[][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.

Implementations

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.

pub fn is_empty(&self) -> bool[src]

Returns true if displaying this backtrace would be an empty string.

Trait Implementations

impl Debug for Backtrace[src]

impl Default for Backtrace[src]

impl Display for Backtrace[src]

Auto Trait Implementations

impl !RefUnwindSafe for Backtrace

impl Send for Backtrace

impl Sync for Backtrace

impl Unpin for Backtrace

impl UnwindSafe for Backtrace

Blanket Implementations

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

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

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

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.