Trait etwin_core::token::TokenStore[][src]

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

Required methods

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

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

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

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

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

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

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

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

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

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

Loading content...

Implementations on Foreign Types

impl<'a, T: 'a + TokenStore + ?Sized> TokenStore for &'a T where
    &'a T: Send + Sync
[src]

impl<T: TokenStore + ?Sized> TokenStore for Arc<T> where
    Arc<T>: Send + Sync
[src]

Loading content...

Implementors

Loading content...