Struct diana::errors::Error [−][src]
pub struct Error(pub ErrorKind, _);
Expand description
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 oferror_chain
internals, containing:- a backtrace, generated when the error is created.
- an error chain, used for the implementation of
Error::cause()
.
Implementations
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
Extends the error chain with a new entry.
A short description of the error.
This method is identical to Error::description()
Trait Implementations
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Extends the error chain with a new entry.
Returns an object which implements Display
for printing the full
context of this error. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more