CollectServerError

Trait CollectServerError 

Source
pub trait CollectServerError: Sized {
    // Required method
    async fn collect_server_error(self) -> Result<Self, ClientError>;
}
Expand description

Trait to recover public errors from server.

Required Methods§

Source

async fn collect_server_error(self) -> Result<Self, ClientError>

Collects server error.

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 CollectServerError for Response

Available on crate features reqwest and cresult only.

Implementors§