Trait DecodeError

Source
pub trait DecodeError:
    Error
    + Send
    + Sized {
    // Provided method
    fn decode_error(self) -> impl Future<Output = String> + Send { ... }
}
Expand description

Trait for decoding extra error information asynchronously.

Provided Methods§

Source

fn decode_error(self) -> impl Future<Output = String> + Send

Decodes extra error information.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DecodeError for Infallible

Source§

async fn decode_error(self) -> String

Implementors§

Source§

impl DecodeError for FetchError

Available on crate features reqwest and http only.
Source§

impl<C: Client> DecodeError for HttpStreamError<C>

Available on crate feature http only.
Source§

impl<S: SourceStream> DecodeError for StreamInitializationError<S>