pub struct FileRefreshTokenStore { /* private fields */ }Expand description
File-based implementation of RefreshTokenStore
Implementations§
Trait Implementations§
Source§impl RefreshTokenStore for FileRefreshTokenStore
impl RefreshTokenStore for FileRefreshTokenStore
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 TokenStoreKey,
) -> Pin<Box<dyn Future<Output = Result<Option<SerializedTokens>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 TokenStoreKey,
) -> Pin<Box<dyn Future<Output = Result<Option<SerializedTokens>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load tokens for the given key
Source§fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 TokenStoreKey,
tokens: &'life2 SerializedTokens,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 TokenStoreKey,
tokens: &'life2 SerializedTokens,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save tokens for the given key
Auto Trait Implementations§
impl Freeze for FileRefreshTokenStore
impl RefUnwindSafe for FileRefreshTokenStore
impl Send for FileRefreshTokenStore
impl Sync for FileRefreshTokenStore
impl Unpin for FileRefreshTokenStore
impl UnwindSafe for FileRefreshTokenStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more