Enum tower_http::BodyOrIoError [−][src]
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::Error
s.
Variants
Errors produced by the body.
Io(Error)
IO errors produced by compression or decompression.
Trait Implementations
impl<E: Debug> Debug for BodyOrIoError<E>
[src]
impl<E: Debug> Debug for BodyOrIoError<E>
[src]impl<E> Display for BodyOrIoError<E> where
E: Display,
[src]
impl<E> Display for BodyOrIoError<E> where
E: Display,
[src]impl<E> Error for BodyOrIoError<E> where
E: Error,
[src]
impl<E> Error for BodyOrIoError<E> where
E: Error,
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<E> !RefUnwindSafe for BodyOrIoError<E>
impl<E> Send for BodyOrIoError<E> where
E: Send,
E: Send,
impl<E> Sync for BodyOrIoError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for BodyOrIoError<E> where
E: Unpin,
E: Unpin,
impl<E> !UnwindSafe for BodyOrIoError<E>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> PolicyExt for T where
T: ?Sized,
[src]
impl<T> PolicyExt for T where
T: ?Sized,
[src]