[][src]Enum body_image_futio::FutioError

pub enum FutioError {
    Body(BodyError),
    ResponseTimeout(Duration),
    BodyTimeout(Duration),
    ContentLengthTooLong(u64),
    Http(Error),
    Hyper(Error),
    UnsupportedEncoding(Encoding),
    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 Tunables::res_timeout duration was reached before receiving the initial response.

BodyTimeout(Duration)

The Tunables::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.

Other(Flaw)

Other unclassified errors.

_FutureProof

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

Trait Implementations

impl From<BodyError> for FutioError[src]

impl From<Error> for FutioError[src]

impl From<Error> for FutioError[src]

impl From<Error> for FutioError[src]

impl Display for FutioError[src]

impl Debug for FutioError[src]

impl Error for FutioError[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn type_id(&self) -> TypeId where
    Self: 'static, 
1.34.0
[src]

Gets the TypeId of self

Auto Trait Implementations

impl Send for FutioError

impl Sync for FutioError

Blanket Implementations

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

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

impl<T> From<T> for T[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T