pub struct MemoryKeyStore { /* private fields */ }Expand description
In-memory key store for testing or ephemeral use.
Implementations§
Trait Implementations§
Source§impl Default for MemoryKeyStore
impl Default for MemoryKeyStore
Source§impl KeyStore for MemoryKeyStore
impl KeyStore for MemoryKeyStore
Source§fn save_group_key<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
data: KeyData,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_group_key<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
data: KeyData,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save a group key for a session/group.
Source§fn load_group_key<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<KeyData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_group_key<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<KeyData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a group key for a session/group.
Source§fn delete_group_key<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_group_key<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a group key for a session/group.
Auto Trait Implementations§
impl !Freeze for MemoryKeyStore
impl RefUnwindSafe for MemoryKeyStore
impl Send for MemoryKeyStore
impl Sync for MemoryKeyStore
impl Unpin for MemoryKeyStore
impl UnsafeUnpin for MemoryKeyStore
impl UnwindSafe for MemoryKeyStore
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