pub trait TokenStore: Send + Sync {
    // Required methods
    fn touch_twinoid_oauth<'life0, 'life1, 'async_trait>(
        &'life0 self,
        options: &'life1 TouchOauthTokenOptions
    ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn revoke_twinoid_access_token<'life0, 'life1, 'async_trait>(
        &'life0 self,
        options: &'life1 RfcOauthAccessTokenKey
    ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn revoke_twinoid_refresh_token<'life0, 'life1, 'async_trait>(
        &'life0 self,
        options: &'life1 RfcOauthRefreshTokenKey
    ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_twinoid_oauth<'life0, 'async_trait>(
        &'life0 self,
        options: TwinoidUserIdRef
    ) -> Pin<Box<dyn Future<Output = Result<TwinoidOauth, AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn touch_dinoparc<'life0, 'life1, 'async_trait>(
        &'life0 self,
        user: DinoparcUserIdRef,
        key: &'life1 DinoparcSessionKey
    ) -> Pin<Box<dyn Future<Output = Result<StoredDinoparcSession, AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn revoke_dinoparc<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server: DinoparcServer,
        key: &'life1 DinoparcSessionKey
    ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_dinoparc<'life0, 'async_trait>(
        &'life0 self,
        user: DinoparcUserIdRef
    ) -> Pin<Box<dyn Future<Output = Result<Option<StoredDinoparcSession>, AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn touch_hammerfest<'life0, 'life1, 'async_trait>(
        &'life0 self,
        user: HammerfestUserIdRef,
        key: &'life1 HammerfestSessionKey
    ) -> Pin<Box<dyn Future<Output = Result<StoredHammerfestSession, AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn revoke_hammerfest<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server: HammerfestServer,
        key: &'life1 HammerfestSessionKey
    ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_hammerfest<'life0, 'async_trait>(
        &'life0 self,
        user: HammerfestUserIdRef
    ) -> Pin<Box<dyn Future<Output = Result<Option<StoredHammerfestSession>, AnyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn touch_twinoid_oauth<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 TouchOauthTokenOptions ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn revoke_twinoid_access_token<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 RfcOauthAccessTokenKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn revoke_twinoid_refresh_token<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 RfcOauthRefreshTokenKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_twinoid_oauth<'life0, 'async_trait>( &'life0 self, options: TwinoidUserIdRef ) -> Pin<Box<dyn Future<Output = Result<TwinoidOauth, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn touch_dinoparc<'life0, 'life1, 'async_trait>( &'life0 self, user: DinoparcUserIdRef, key: &'life1 DinoparcSessionKey ) -> Pin<Box<dyn Future<Output = Result<StoredDinoparcSession, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn revoke_dinoparc<'life0, 'life1, 'async_trait>( &'life0 self, server: DinoparcServer, key: &'life1 DinoparcSessionKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_dinoparc<'life0, 'async_trait>( &'life0 self, user: DinoparcUserIdRef ) -> Pin<Box<dyn Future<Output = Result<Option<StoredDinoparcSession>, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn touch_hammerfest<'life0, 'life1, 'async_trait>( &'life0 self, user: HammerfestUserIdRef, key: &'life1 HammerfestSessionKey ) -> Pin<Box<dyn Future<Output = Result<StoredHammerfestSession, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn revoke_hammerfest<'life0, 'life1, 'async_trait>( &'life0 self, server: HammerfestServer, key: &'life1 HammerfestSessionKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_hammerfest<'life0, 'async_trait>( &'life0 self, user: HammerfestUserIdRef ) -> Pin<Box<dyn Future<Output = Result<Option<StoredHammerfestSession>, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl<T: TokenStore + ?Sized> TokenStore for Arc<T>where Arc<T>: Send + Sync,

source§

fn touch_twinoid_oauth<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 TouchOauthTokenOptions ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_twinoid_access_token<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 RfcOauthAccessTokenKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_twinoid_refresh_token<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 RfcOauthRefreshTokenKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_twinoid_oauth<'life0, 'async_trait>( &'life0 self, options: TwinoidUserIdRef ) -> Pin<Box<dyn Future<Output = Result<TwinoidOauth, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn touch_dinoparc<'life0, 'life1, 'async_trait>( &'life0 self, user: DinoparcUserIdRef, key: &'life1 DinoparcSessionKey ) -> Pin<Box<dyn Future<Output = Result<StoredDinoparcSession, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_dinoparc<'life0, 'life1, 'async_trait>( &'life0 self, server: DinoparcServer, key: &'life1 DinoparcSessionKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_dinoparc<'life0, 'async_trait>( &'life0 self, user: DinoparcUserIdRef ) -> Pin<Box<dyn Future<Output = Result<Option<StoredDinoparcSession>, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn touch_hammerfest<'life0, 'life1, 'async_trait>( &'life0 self, user: HammerfestUserIdRef, key: &'life1 HammerfestSessionKey ) -> Pin<Box<dyn Future<Output = Result<StoredHammerfestSession, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_hammerfest<'life0, 'life1, 'async_trait>( &'life0 self, server: HammerfestServer, key: &'life1 HammerfestSessionKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_hammerfest<'life0, 'async_trait>( &'life0 self, user: HammerfestUserIdRef ) -> Pin<Box<dyn Future<Output = Result<Option<StoredHammerfestSession>, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

impl<'a, T: 'a + TokenStore + ?Sized> TokenStore for &'a Twhere &'a T: Send + Sync,

source§

fn touch_twinoid_oauth<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 TouchOauthTokenOptions ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_twinoid_access_token<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 RfcOauthAccessTokenKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_twinoid_refresh_token<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 RfcOauthRefreshTokenKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_twinoid_oauth<'life0, 'async_trait>( &'life0 self, options: TwinoidUserIdRef ) -> Pin<Box<dyn Future<Output = Result<TwinoidOauth, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn touch_dinoparc<'life0, 'life1, 'async_trait>( &'life0 self, user: DinoparcUserIdRef, key: &'life1 DinoparcSessionKey ) -> Pin<Box<dyn Future<Output = Result<StoredDinoparcSession, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_dinoparc<'life0, 'life1, 'async_trait>( &'life0 self, server: DinoparcServer, key: &'life1 DinoparcSessionKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_dinoparc<'life0, 'async_trait>( &'life0 self, user: DinoparcUserIdRef ) -> Pin<Box<dyn Future<Output = Result<Option<StoredDinoparcSession>, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn touch_hammerfest<'life0, 'life1, 'async_trait>( &'life0 self, user: HammerfestUserIdRef, key: &'life1 HammerfestSessionKey ) -> Pin<Box<dyn Future<Output = Result<StoredHammerfestSession, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn revoke_hammerfest<'life0, 'life1, 'async_trait>( &'life0 self, server: HammerfestServer, key: &'life1 HammerfestSessionKey ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_hammerfest<'life0, 'async_trait>( &'life0 self, user: HammerfestUserIdRef ) -> Pin<Box<dyn Future<Output = Result<Option<StoredHammerfestSession>, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§