pub struct MemoryTokenStorage { /* private fields */ }Expand description
接口调用凭据内存存储结构
Implementations§
Trait Implementations§
Source§impl TokenStorage for MemoryTokenStorage
内存存储方式的接口调用凭据存储读取实现
impl TokenStorage for MemoryTokenStorage
内存存储方式的接口调用凭据存储读取实现
Source§fn token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取接口调用凭据
Source§fn refresh_access_token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn refresh_access_token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
刷新接口调用凭据
fn token_type(&self) -> Arc<dyn TokenType>
Auto Trait Implementations§
impl Freeze for MemoryTokenStorage
impl !RefUnwindSafe for MemoryTokenStorage
impl Send for MemoryTokenStorage
impl Sync for MemoryTokenStorage
impl Unpin for MemoryTokenStorage
impl UnsafeUnpin for MemoryTokenStorage
impl !UnwindSafe for MemoryTokenStorage
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