pub struct MemoryCredentialStore { /* private fields */ }Implementations§
Source§impl MemoryCredentialStore
impl MemoryCredentialStore
pub fn new() -> Self
pub fn with_credential(self, key: &str, credential: OAuthCredential) -> Self
pub fn with_value(self, key: &str, value: Value) -> Self
Trait Implementations§
Source§impl Default for MemoryCredentialStore
impl Default for MemoryCredentialStore
Source§impl OAuthCredentialStorage for MemoryCredentialStore
impl OAuthCredentialStorage for MemoryCredentialStore
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Value,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn contains(&self, key: &str) -> bool
fn load_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthCredential>, OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
credential: OAuthCredential,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for MemoryCredentialStore
impl RefUnwindSafe for MemoryCredentialStore
impl Send for MemoryCredentialStore
impl Sync for MemoryCredentialStore
impl Unpin for MemoryCredentialStore
impl UnsafeUnpin for MemoryCredentialStore
impl UnwindSafe for MemoryCredentialStore
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