[][src]Struct yup_oauth2::DefaultAuthenticatorDelegate

pub struct DefaultAuthenticatorDelegate;

Uses all default implementations by AuthenticatorDelegate, and makes the trait's implementation usable in the first place.

Trait Implementations

impl AuthenticatorDelegate for DefaultAuthenticatorDelegate[src]

fn client_error(&mut self, _: &Error) -> Retry[src]

Called whenever there is an client, usually if there are network problems. Read more

fn token_storage_failure(&mut self, is_set: bool, _: &dyn Error) -> Retry[src]

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. if is_set is true, the failure resulted from TokenStorage.set(...). Otherwise, it was TokenStorage.get(...) Read more

fn request_failure(&mut self, _: RequestError)[src]

The server denied the attempt to obtain a request code

fn token_refresh_failed<S: AsRef<str>>(
    &mut self,
    error: S,
    error_description: &Option<String>
)
[src]

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. Read more

impl Clone for DefaultAuthenticatorDelegate[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T