Trait graph_core::cache::TokenCache

source ·
pub trait TokenCache {
    type Token: AsBearer;

    // Required methods
    fn get_token_silent(&mut self) -> Result<Self::Token, AuthExecutionError>;
    fn get_token_silent_async<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Token, AuthExecutionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn with_force_token_refresh(
        &mut self,
        force_token_refresh: ForceTokenRefresh
    );
}

Required Associated Types§

Required Methods§

source

fn get_token_silent(&mut self) -> Result<Self::Token, AuthExecutionError>

source

fn get_token_silent_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Self::Token, AuthExecutionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn with_force_token_refresh(&mut self, force_token_refresh: ForceTokenRefresh)

Object Safety§

This trait is not object safe.

Implementors§