[][src]Enum solicit::http::HttpError

pub enum HttpError {
    IoError(Error),
    InvalidFrame,
    PeerConnectionError(ConnectionError),
    CompressionError(DecoderError),
    WindowSizeOverflow,
    UnknownStreamId,
    UnableToConnect,
    MalformedResponse,
    Other(Box<dyn Error + Send + Sync>),
}

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

InvalidFrame

The HTTP/2 connection received an invalid HTTP/2 frame

PeerConnectionError(ConnectionError)

The peer indicated a connection error

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
Other(Box<dyn Error + Send + Sync>)

Trait Implementations

impl Debug for HttpError[src]

impl Display for HttpError[src]

impl Error for HttpError[src]

impl<E> From<E> for HttpError where
    E: HttpConnectError + 'static, 
[src]

impl From<Error> for HttpError[src]

Implement the trait that allows us to automatically convert io::Errors into an HttpError by wrapping the given io::Error into an HttpError::IoError variant.

Auto Trait Implementations

impl !RefUnwindSafe for HttpError

impl Send for HttpError

impl Sync for HttpError

impl Unpin for HttpError

impl !UnwindSafe for HttpError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.