Enum ntex::http::error::DispatchError [−][src]
pub enum DispatchError {
Show 13 variants
Service(Box<dyn ResponseError>),
Upgrade(Box<dyn Error>),
Io(Error),
Parse(ParseError),
Encode(Error),
H2(Error),
SlowRequestTimeout,
DisconnectTimeout,
PayloadIsNotConsumed,
MalformedRequest,
ResponsePayload(Box<dyn Error>),
InternalError,
Unknown,
}
Expand description
A set of errors that can occur during dispatching http requests
Variants
Service(Box<dyn ResponseError>)
Service error
Tuple Fields of Service
0: Box<dyn ResponseError>
Upgrade service error
Io(Error)
An io::Error
that occurred while trying to read or write to a network
stream.
Tuple Fields of Io
0: Error
Parse(ParseError)
Http request parse error.
Tuple Fields of Parse
0: ParseError
Encode(Error)
Http response encoding error.
Tuple Fields of Encode
0: Error
H2(Error)
Http/2 error
Tuple Fields of H2
0: Error
The first request did not complete within the specified timeout.
Disconnect timeout. Makes sense for ssl streams.
Payload is not consumed
Malformed request
Response body processing error
Internal error
Unknown error
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for DispatchError
impl !Send for DispatchError
impl !Sync for DispatchError
impl Unpin for DispatchError
impl !UnwindSafe for DispatchError
Blanket Implementations
Mutably borrows from an owned value. 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