pub struct MemoryStore { /* private fields */ }Implementations§
Source§impl MemoryStore
impl MemoryStore
pub fn new() -> MemoryStore
Trait Implementations§
Source§impl CredentialStore for MemoryStore
impl CredentialStore for MemoryStore
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Token>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryStore: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Token>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryStore: 'async_trait,
Load the credential for exactly one key.
Source§fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
profile: &'life1 str,
token: &'life2 Token,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
MemoryStore: 'async_trait,
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
profile: &'life1 str,
token: &'life2 Token,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
MemoryStore: 'async_trait,
Persist a credential while preserving unrelated keys.
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryStore: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryStore: 'async_trait,
Delete a credential, succeeding if it is already absent.
Source§fn lock<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StorageLock>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryStore: 'async_trait,
fn lock<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StorageLock>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryStore: 'async_trait,
Acquire an exclusive refresh lease or fail within the timeout.
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§fn default() -> MemoryStore
fn default() -> MemoryStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryStore
impl !RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnsafeUnpin for MemoryStore
impl UnwindSafe for MemoryStore
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