Struct actix_web::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.
pub fn error_response(&self) -> HttpResponseⓘNotable traits for HttpResponse<BoxBody>impl Future for HttpResponse<BoxBody> type Output = Result<Response<BoxBody>, Error>;
pub fn error_response(&self) -> HttpResponseⓘNotable traits for HttpResponse<BoxBody>impl Future for HttpResponse<BoxBody> type Output = Result<Response<BoxBody>, Error>;
impl Future for HttpResponse<BoxBody> type Output = Result<Response<BoxBody>, Error>;
Shortcut for creating an HttpResponse
.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
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