RedirectServerError

Trait RedirectServerError 

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

Trait to recover public errors from server.

Required Methods§

Source

async fn redirect_server_error(self) -> Result<Self, ServerError>

Redirects 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 RedirectServerError for Response

Available on crate features reqwest and mresult only.

Implementors§