Enum actix_web::server::HttpDispatchError
source · pub enum HttpDispatchError {
App(Error),
Io(Error),
SlowRequestTimeout,
ShutdownTimeout,
Http2(Error),
PayloadIsNotConsumed,
MalformedRequest,
InternalError,
Unknown,
}
Expand description
A set of errors that can occur during dispatching http requests
Variants
App(Error)
Application error
Io(Error)
An io::Error
that occurred while trying to read or write to a network
stream.
SlowRequestTimeout
The first request did not complete within the specified timeout.
ShutdownTimeout
Shutdown timeout
Http2(Error)
HTTP2 error
PayloadIsNotConsumed
Payload is not consumed
MalformedRequest
Malformed request
InternalError
Internal error
Unknown
Unknown error
Trait Implementations
sourceimpl Debug for HttpDispatchError
impl Debug for HttpDispatchError
sourceimpl Display for HttpDispatchError
impl Display for HttpDispatchError
sourceimpl Fail for HttpDispatchError
impl Fail for HttpDispatchError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<Error> for HttpDispatchError
impl From<Error> for HttpDispatchError
sourceimpl From<Error> for HttpDispatchError
impl From<Error> for HttpDispatchError
Auto Trait Implementations
impl !RefUnwindSafe for HttpDispatchError
impl Send for HttpDispatchError
impl Sync for HttpDispatchError
impl Unpin for HttpDispatchError
impl !UnwindSafe for HttpDispatchError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more