pub trait OAuthRefreshTokenHandler: Send + Sync {
// Required method
fn refresh_access_token<'life0, 'life1, 'async_trait>(
&'life0 self,
refresh_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<OAuthTokenSet, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn configured_client_ids(
&self,
_ids: &[String],
) -> Option<Arc<dyn OAuthRefreshTokenHandler>> { ... }
fn refresh_access_token_with_context<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
refresh_token: &'life1 str,
_context: Option<OAuthRefreshContext<'life2>>,
) -> Pin<Box<dyn Future<Output = Result<OAuthTokenSet, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Required Methods§
fn refresh_access_token<'life0, 'life1, 'async_trait>(
&'life0 self,
refresh_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<OAuthTokenSet, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provided Methods§
Sourcefn configured_client_ids(
&self,
_ids: &[String],
) -> Option<Arc<dyn OAuthRefreshTokenHandler>>
fn configured_client_ids( &self, _ids: &[String], ) -> Option<Arc<dyn OAuthRefreshTokenHandler>>
Reconfigure a factory transport that directly interpolates client IDs.
Sourcefn refresh_access_token_with_context<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
refresh_token: &'life1 str,
_context: Option<OAuthRefreshContext<'life2>>,
) -> Pin<Box<dyn Future<Output = Result<OAuthTokenSet, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn refresh_access_token_with_context<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
refresh_token: &'life1 str,
_context: Option<OAuthRefreshContext<'life2>>,
) -> Pin<Box<dyn Future<Output = Result<OAuthTokenSet, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Context-aware application handlers may override this method. Existing factory handlers retain their token-only implementation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".