pub struct FileTokenStore { /* private fields */ }Expand description
基于文件的 token 存储(开发/测试用)。生产建议替换为系统钥匙串实现。
Implementations§
Trait Implementations§
Source§impl TokenStore for FileTokenStore
impl TokenStore for FileTokenStore
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
tokens: &'life1 TokenSet,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<TokenSet>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for FileTokenStore
impl !RefUnwindSafe for FileTokenStore
impl Send for FileTokenStore
impl Sync for FileTokenStore
impl Unpin for FileTokenStore
impl UnsafeUnpin for FileTokenStore
impl UnwindSafe for FileTokenStore
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