Trait graph_http::api_impl::ClientApplication

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

Required Methods§

source

fn get_token_silent(&mut self) -> Result<String, AuthExecutionError>

source

fn get_token_silent_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<String, AuthExecutionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: '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) -> Result<String, AuthExecutionError>

source§

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

source§

fn with_force_token_refresh(&mut self, _force_token_refresh: ForceTokenRefresh)

Implementors§