Enum httpbis::Error [−][src]
pub enum Error { IoError(Error), TlsError(Error), CodeError(ErrorCode), InvalidFrame(String), CompressionError(DecoderError), WindowSizeOverflow, UnknownStreamId, UnableToConnect, MalformedResponse, ConnectionTimeout, Shutdown, HandlerPanicked(String), ParseFrameError(ParseFrameError), InternalError(String), NotImplemented(&'static str), Other(&'static str), ClientDied(Option<Arc<Error>>), ClientPanicked(String), ClientCompletedWithoutError, }
An enum representing errors that can arise when performing operations involving an HTTP/2 connection.
Variants
IoError(Error)
The underlying IO layer raised an error
TlsError(Error)
CodeError(ErrorCode)
InvalidFrame(String)
The HTTP/2 connection received an invalid HTTP/2 frame
CompressionError(DecoderError)
The HPACK decoder was unable to decode a header chunk and raised an error. Any decoder error is fatal to the HTTP/2 connection as it means that the decoder contexts will be out of sync.
WindowSizeOverflow
Indicates that the local peer has discovered an overflow in the size of one of the connection flow control window, which is a connection error.
UnknownStreamId
UnableToConnect
MalformedResponse
ConnectionTimeout
Shutdown
Shutdown of local client or server
HandlerPanicked(String)
ParseFrameError(ParseFrameError)
InternalError(String)
NotImplemented(&'static str)
Other(&'static str)
ClientDied(Option<Arc<Error>>)
ClientPanicked(String)
ClientCompletedWithoutError
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
Implement the trait that allows us to automatically convert io::Error
s
into an HttpError
by wrapping the given io::Error
into an HttpError::IoError
variant.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl<F> From<TimeoutError<F>> for Error
[src]
impl<F> From<TimeoutError<F>> for Error
fn from(_err: TimeoutError<F>) -> Error
[src]
fn from(_err: TimeoutError<F>) -> Error
Performs the conversion.
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error