Enum actix_http::error::DispatchError
source · [−]pub enum DispatchError {
Service(Response<BoxBody>),
Body(Box<dyn StdError>),
Upgrade,
Io(Error),
Parse(ParseError),
H2(Error),
SlowRequestTimeout,
DisconnectTimeout,
InternalError,
}
Expand description
A set of errors that can occur during dispatching HTTP requests.
Variants
Service(Response<BoxBody>)
Service error.
Body(Box<dyn StdError>)
Body streaming error.
Upgrade
Upgrade service error.
Io(Error)
An io::Error
that occurred while trying to read or write to a network stream.
Parse(ParseError)
Request parse error.
H2(Error)
HTTP/2 error.
SlowRequestTimeout
The first request did not complete within the specified timeout.
DisconnectTimeout
Disconnect timeout. Makes sense for ssl streams.
InternalError
Internal error.
Trait Implementations
sourceimpl Debug for DispatchError
impl Debug for DispatchError
sourceimpl Display for DispatchError
impl Display for DispatchError
sourceimpl Error for DispatchError
impl Error for DispatchError
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Box<dyn Error + 'static, Global>> for DispatchError
impl From<Box<dyn Error + 'static, Global>> for DispatchError
sourcefn from(original: Box<dyn StdError>) -> DispatchError
fn from(original: Box<dyn StdError>) -> DispatchError
Converts to this type from the input type.
sourceimpl From<Error> for DispatchError
impl From<Error> for DispatchError
sourcefn from(original: Error) -> DispatchError
fn from(original: Error) -> DispatchError
Converts to this type from the input type.
sourceimpl From<Error> for DispatchError
impl From<Error> for DispatchError
sourcefn from(original: Error) -> DispatchError
fn from(original: Error) -> DispatchError
Converts to this type from the input type.
sourceimpl From<ParseError> for DispatchError
impl From<ParseError> for DispatchError
sourcefn from(original: ParseError) -> DispatchError
fn from(original: ParseError) -> DispatchError
Converts to this type from the input type.
sourceimpl From<Response<BoxBody>> for DispatchError
impl From<Response<BoxBody>> for DispatchError
sourcefn from(original: Response<BoxBody>) -> DispatchError
fn from(original: Response<BoxBody>) -> DispatchError
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more