Trait ClientApplication

Source
pub trait ClientApplication:
    DynClone
    + Send
    + Sync {
    // Required methods
    fn get_token_silent(&mut self) -> AuthExecutionResult<String>;
    fn get_token_silent_async<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = AuthExecutionResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn with_force_token_refresh(
        &mut self,
        force_token_refresh: ForceTokenRefresh,
    );
}

Required Methods§

Source

fn get_token_silent(&mut self) -> AuthExecutionResult<String>

Source

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

Source

fn with_force_token_refresh(&mut self, force_token_refresh: ForceTokenRefresh)

Implementations on Foreign Types§

Source§

impl ClientApplication for String

Source§

fn get_token_silent(&mut self) -> AuthExecutionResult<String>

Source§

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

Source§

fn with_force_token_refresh(&mut self, _force_token_refresh: ForceTokenRefresh)

Implementors§