[][src]Enum body_image_futio::FutioError

pub enum FutioError {
    Body(BodyError),
    ResponseTimeout(Duration),
    BodyTimeout(Duration),
    ContentLengthTooLong(u64),
    Http(Error),
    Hyper(Error),
    UnsupportedEncoding(Encoding),
    OpCanceled(Canceled),
    Other(Flaw),
    _FutureProof,
}

Error enumeration for body-image-futio origin errors. This may be extended in the future so exhaustive matching is gently discouraged with an unused variant.

Variants

Body(BodyError)

Error from BodySink or BodyImage.

ResponseTimeout(Duration)

The FutioTunables::res_timeout duration was reached before receiving the initial response.

BodyTimeout(Duration)

The FutioTunables::body_timeout duration was reached before receiving the complete response body.

ContentLengthTooLong(u64)

The content-length header exceeded Tunables::max_body.

Http(Error)

Error from http.

Hyper(Error)

Error from hyper.

UnsupportedEncoding(Encoding)

Failed to decode an unsupported Encoding; such as Compress, or Brotli, when the brotli feature is not enabled.

OpCanceled(Canceled)

A pending blocking permit or dispatched operation was canceled before it was granted or completed.

Other(Flaw)

Other unclassified errors.

_FutureProof

Unused variant to both enable non-exhaustive matching and warn against exhaustive matching.

Trait Implementations

impl Debug for FutioError[src]

impl Display for FutioError[src]

impl Error for FutioError[src]

impl From<BodyError> for FutioError[src]

impl From<Error> for FutioError[src]

impl From<Error> for FutioError[src]

impl From<Error> for FutioError[src]

Auto Trait Implementations

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> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,