Enum tower_http::BodyOrIoError
source · [−]pub enum BodyOrIoError<E> {
Body(E),
Io(Error),
}This is supported on crate features
compression or decompression only.Expand description
Error type containing either a body error or an IO error.
This type is used to combine errors produced by response bodies with compression or
decompression applied. The body itself can produce errors of type E whereas compression or
decompression can produce io::Errors.
Variants
Body(E)
Errors produced by the body.
Io(Error)
IO errors produced by compression or decompression.
Trait Implementations
Auto Trait Implementations
impl<E> !RefUnwindSafe for BodyOrIoError<E>
impl<E> Send for BodyOrIoError<E> where
E: Send,
impl<E> Sync for BodyOrIoError<E> where
E: Sync,
impl<E> Unpin for BodyOrIoError<E> where
E: Unpin,
impl<E> !UnwindSafe for BodyOrIoError<E>
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. Read more
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