Enum ntex::http::error::DispatchError [−][src]
pub enum DispatchError {}Show 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
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.
Encode(Error)
Http response encoding 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
Response body processing error
Internal error
Unknown error
Trait Implementations
impl Debug for DispatchError
[src]
impl Debug for DispatchError
[src]impl Display for DispatchError
[src]
impl Display for DispatchError
[src]impl Error for DispatchError
[src]
impl Error for DispatchError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<Box<dyn Error + 'static, Global>> for DispatchError
[src]
impl From<Box<dyn Error + 'static, Global>> for DispatchError
[src]fn from(original: Box<dyn Error>) -> DispatchError
[src]
fn from(original: Box<dyn Error>) -> DispatchError
[src]Performs the conversion.
impl From<Box<dyn ResponseError + 'static, Global>> for DispatchError
[src]
impl From<Box<dyn ResponseError + 'static, Global>> for DispatchError
[src]fn from(original: Box<dyn ResponseError>) -> DispatchError
[src]
fn from(original: Box<dyn ResponseError>) -> DispatchError
[src]Performs the conversion.
impl From<Error> for DispatchError
[src]
impl From<Error> for DispatchError
[src]fn from(original: Error) -> DispatchError
[src]
fn from(original: Error) -> DispatchError
[src]Performs the conversion.
impl From<Error> for DispatchError
[src]
impl From<Error> for DispatchError
[src]fn from(original: Error) -> DispatchError
[src]
fn from(original: Error) -> DispatchError
[src]Performs the conversion.
impl From<ParseError> for DispatchError
[src]
impl From<ParseError> for DispatchError
[src]fn from(original: ParseError) -> DispatchError
[src]
fn from(original: ParseError) -> DispatchError
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self