Enum ajars_actix_web::actix_web::error::DispatchError [−]
#[non_exhaustive]
pub enum DispatchError {
Service(Response<AnyBody>),
Body(Box<dyn Error + 'static, Global>),
Upgrade,
Io(Error),
Parse(ParseError),
H2(Error),
SlowRequestTimeout,
DisconnectTimeout,
PayloadIsNotConsumed,
MalformedRequest,
InternalError,
Unknown,
}
Expand description
A set of errors that can occur during dispatching HTTP requests.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Service error
Body error
Upgrade service error
Io(Error)
An io::Error
that occurred while trying to read or write to a network stream.
Parse(ParseError)
Http request parse error.
H2(Error)
Http/2 error
The first request did not complete within the specified timeout.
Disconnect timeout. Makes sense for ssl streams.
Payload is not consumed
Malformed request
Internal error
Unknown error
Trait Implementations
impl Debug for DispatchError
impl Debug for DispatchError
impl Display for DispatchError
impl Display for DispatchError
impl Error for DispatchError
impl Error for DispatchError
impl From<Box<dyn Error + 'static, Global>> for DispatchError
impl From<Box<dyn Error + 'static, Global>> for DispatchError
pub fn from(original: Box<dyn Error + 'static, Global>) -> DispatchError
pub fn from(original: Box<dyn Error + 'static, Global>) -> DispatchError
Performs the conversion.
impl From<Error> for DispatchError
impl From<Error> for DispatchError
pub fn from(original: Error) -> DispatchError
pub fn from(original: Error) -> DispatchError
Performs the conversion.
impl From<Error> for DispatchError
impl From<Error> for DispatchError
pub fn from(original: Error) -> DispatchError
pub fn from(original: Error) -> DispatchError
Performs the conversion.
impl From<ParseError> for DispatchError
impl From<ParseError> for DispatchError
pub fn from(original: ParseError) -> DispatchError
pub fn from(original: ParseError) -> DispatchError
Performs the conversion.
impl From<Response<AnyBody>> for DispatchError
impl From<Response<AnyBody>> for DispatchError
pub fn from(original: Response<AnyBody>) -> DispatchError
pub fn from(original: Response<AnyBody>) -> DispatchError
Performs the conversion.