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§
Sourcefn decode_error(self) -> impl Future<Output = String> + Send
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
impl DecodeError for Infallible
async fn decode_error(self) -> String
Implementors§
impl DecodeError for FetchError
Available on crate features
reqwest
and http
only.impl<C: Client> DecodeError for HttpStreamError<C>
Available on crate feature
http
only.