Struct actix_web::error::Error [−][src]
pub struct Error { /* fields omitted */ }
Expand description
General purpose actix web error.
An actix web error is used to carry errors from std::error
through actix in a convenient way. It can be created through
converting errors with into()
.
Whenever it is created from an external object a response error is created
for it that can be used to create an http response from it this means that
if you have access to an actix Error
you can always get a
ResponseError
reference from it.
Implementations
Returns the reference to the underlying ResponseError
.
Similar to as_response_error
but downcasts.
Trait Implementations
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
use the Display impl or to_string()
Performs the conversion.
Performs the conversion.
Convert Error
to a Response
instance
Performs the conversion.
Convert Response to a Error
Convert ResponseBuilder to a Error
Performs the conversion.
Error
for any error that implements ResponseError
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
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