pub trait RequestError: From<ApiError> + Debug {
// Required method
fn from_response(response: Response) -> impl Future<Output = Self> + Send;
}Expand description
Trait for error types that can be created from API responses
Required Methods§
Sourcefn from_response(response: Response) -> impl Future<Output = Self> + Send
fn from_response(response: Response) -> impl Future<Output = Self> + Send
Create error from HTTP response
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.