cipherstash_client::credentials

Trait AutoRefreshable

pub trait AutoRefreshable: Credentials {
    // Required method
    fn refresh<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Duration> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

fn refresh<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Duration> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Refresh the token, caches the result, and returns the duration until when the token should refresh again

Implementors§