Enum httpbis::error::Error
[−]
[src]
pub enum Error { IoError(Error), TlsError(Error), CodeError(ErrorCode), InvalidFrame(String), CompressionError(DecoderError), WindowSizeOverflow, UnknownStreamId, UnableToConnect, MalformedResponse, ConnectionTimeout, Shutdown, HandlerPanicked(String), Other(&'static str), }
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)
Other(&'static str)
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
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<F> From<TimeoutError<F>> for Error
[src]
fn from(_err: TimeoutError<F>) -> Error
[src]
Performs the conversion.
impl Display for Error
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more