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
Unused variant to both enable non-exhaustive matching and warn against exhaustive matching.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FutioError
impl Send for FutioError
impl Sync for FutioError
impl Unpin for FutioError
impl !UnwindSafe for FutioError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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