pub struct MemoryOAuthTokenStore { /* private fields */ }Expand description
Process-local OAuth token store.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryOAuthTokenStore
impl Clone for MemoryOAuthTokenStore
Source§fn clone(&self) -> MemoryOAuthTokenStore
fn clone(&self) -> MemoryOAuthTokenStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryOAuthTokenStore
impl Debug for MemoryOAuthTokenStore
Source§impl Default for MemoryOAuthTokenStore
impl Default for MemoryOAuthTokenStore
Source§fn default() -> MemoryOAuthTokenStore
fn default() -> MemoryOAuthTokenStore
Returns the “default value” for a type. Read more
Source§impl OAuthTokenStore for MemoryOAuthTokenStore
impl OAuthTokenStore for MemoryOAuthTokenStore
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
binding: &'life1 OAuthTokenBinding,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthStoredToken>, OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
binding: &'life1 OAuthTokenBinding,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthStoredToken>, OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a token set for an exact binding.
Source§fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binding: &'life1 OAuthTokenBinding,
token: &'life2 OAuthStoredToken,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthClientError>> + 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,
binding: &'life1 OAuthTokenBinding,
token: &'life2 OAuthStoredToken,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save a token set for an exact binding.
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryOAuthTokenStore
impl !UnwindSafe for MemoryOAuthTokenStore
impl Freeze for MemoryOAuthTokenStore
impl Send for MemoryOAuthTokenStore
impl Sync for MemoryOAuthTokenStore
impl Unpin for MemoryOAuthTokenStore
impl UnsafeUnpin for MemoryOAuthTokenStore
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