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§
Sourcefn handle_error(&mut self, error: E) -> ClientResponse<F, C>
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.