Enum cosworth::prelude::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§
source§impl Debug for HttpDispatchError
impl Debug for HttpDispatchError
source§impl Display for HttpDispatchError
impl Display for HttpDispatchError
source§impl Fail for HttpDispatchError
impl Fail for HttpDispatchError
source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<Error> for HttpDispatchError
impl From<Error> for HttpDispatchError
source§fn from(err: Error) -> HttpDispatchError
fn from(err: Error) -> HttpDispatchError
Converts to this type from the input type.
source§impl From<Error> for HttpDispatchError
impl From<Error> for HttpDispatchError
source§fn from(err: Error) -> HttpDispatchError
fn from(err: Error) -> HttpDispatchError
Converts to this type from the input type.
source§impl From<Error> for HttpDispatchError
impl From<Error> for HttpDispatchError
source§fn from(err: Error) -> HttpDispatchError
fn from(err: Error) -> HttpDispatchError
Converts to this type from the input type.
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§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more