Skip to main content

RequestError

Trait RequestError 

Source
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§

Source

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".

Implementors§