Enum body_image_futio::FutioError[][src]

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

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.

Tuple Fields of Body

0: BodyError
ResponseTimeout(Duration)

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

Tuple Fields of ResponseTimeout

0: Duration
BodyTimeout(Duration)

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

Tuple Fields of BodyTimeout

0: Duration
ContentLengthTooLong(u64)

The content-length header exceeded Tunables::max_body.

Tuple Fields of ContentLengthTooLong

0: u64
Http(Error)

Error from http.

Tuple Fields of Http

0: Error
Hyper(Error)

Error from hyper.

Tuple Fields of Hyper

0: Error
UnsupportedEncoding(Encoding)

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

Tuple Fields of UnsupportedEncoding

0: Encoding
OpCanceled(Canceled)

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

Tuple Fields of OpCanceled

0: Canceled
Other(Flaw)

Other unclassified errors.

Tuple Fields of Other

0: Flaw
_FutureProof

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

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more