pub enum ChainTail {
    Backtrace(Backtrace),
    Error(FError),
}
Expand description

Helper type which is either a Backtrace or an full failure::Error.

This can be used to either just contain a backtrace into an custom error or to chain it in front of another error without adding another backtrace, depending on the creating context.

Variants

Backtrace(Backtrace)

Error(FError)

Trait Implementations

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.

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.