Skip to main content

ClientApiError

Trait ClientApiError 

Source
pub trait ClientApiError: From<BadResponseError> + Error {
    // Required methods
    fn bad_response(&self) -> Option<&BadResponseError>;
    fn bad_response_mut(&mut self) -> Option<&mut BadResponseError>;
}

Required Methods§

Source

fn bad_response(&self) -> Option<&BadResponseError>

If current error is a bad response error return a reference to it

Source

fn bad_response_mut(&mut self) -> Option<&mut BadResponseError>

If current error is a bad response error return a mut reference to it

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.

Implementors§