A partially implemented trait to interact with the
The only method that needs to be implemented manually is
as no assumptions are made on how this presentation should happen.
fn client_error(&mut self, _: &Error) -> Retry
Called whenever there is an client, usually if there are network problems.
Return retry information.
fn token_storage_failure(&mut self, is_set: bool, _: &dyn Error) -> Retry
Called whenever we failed to retrieve a token or set a token due to a storage error.
You may use it to either ignore the incident or retry.
This can be useful if the underlying
TokenStorage may fail occasionally.
is_set is true, the failure resulted from
fn request_failure(&mut self, _: RequestError)
The server denied the attempt to obtain a request code
fn token_refresh_failed<S: AsRef<str>>(
Called if we could not acquire a refresh token for a reason possibly specified by the server. This call is made for the delegate's information only.