ErrorHandler

Trait ErrorHandler 

Source
pub trait ErrorHandler<E, F, C = ()> {
    // Required method
    fn handle_error(&mut self, error: E) -> ClientResponse<F, C>;
}
Expand description

This trait should be part of your public API so that your users can implement it for their own types.

Required Methods§

Source

fn handle_error(&mut self, error: E) -> ClientResponse<F, C>

Take an error and decide if the library should continue without the result that was supposed to have been produced.

Implementors§