The Error type.
This tuple struct is made of two elements:
- an
ErrorKind which is used to determine the type of the error.
- An internal
State, not meant for direct use outside of error_chain
internals, containing:
- a backtrace, generated when the error is created.
- an error chain, used for the implementation of
Error::cause().
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Construct a chained error from another boxed error and a kind, and generates a backtrace
Returns the kind of the error.
Iterates over the error chain.
Returns the backtrace associated with this error.
Extends the error chain with a new entry.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Returns the kind of the error.
Iterates over the error chain.
Extends the error chain with a new entry.
Returns the backtrace associated with this error.
Returns an object which implements Display for printing the full context of this error. Read more
Converts the given value to a String. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Convert Box<Trait> (where Trait: Downcast) to Box<Any>. Box<Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any's vtable from &Trait's. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any's vtable from &mut Trait's. Read more