pub struct TokenSourceInMemoryStore { /* private fields */ }Expand description
The default TokenSourceStore: keeps credentials in memory, losing them
when the process exits.
Trait Implementations§
Source§impl Default for TokenSourceInMemoryStore
impl Default for TokenSourceInMemoryStore
Source§impl TokenSourceStore for TokenSourceInMemoryStore
impl TokenSourceStore for TokenSourceInMemoryStore
Source§fn store<'life0, 'async_trait>(
&'life0 self,
options: TokenSourceFetchOptions,
response: TokenSourceResponse,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store<'life0, 'async_trait>(
&'life0 self,
options: TokenSourceFetchOptions,
response: TokenSourceResponse,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stores the given credentials, replacing any stored previously.
Source§fn retrieve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<(TokenSourceFetchOptions, TokenSourceResponse)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<(TokenSourceFetchOptions, TokenSourceResponse)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the stored credentials, or
None if nothing is stored.Auto Trait Implementations§
impl !Freeze for TokenSourceInMemoryStore
impl RefUnwindSafe for TokenSourceInMemoryStore
impl Send for TokenSourceInMemoryStore
impl Sync for TokenSourceInMemoryStore
impl Unpin for TokenSourceInMemoryStore
impl UnsafeUnpin for TokenSourceInMemoryStore
impl UnwindSafe for TokenSourceInMemoryStore
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