pub struct MemoryStorageProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for MemoryStorageProvider
impl Debug for MemoryStorageProvider
Source§impl Default for MemoryStorageProvider
impl Default for MemoryStorageProvider
Source§fn default() -> MemoryStorageProvider
fn default() -> MemoryStorageProvider
Returns the “default value” for a type. Read more
Source§impl IAppserviceStorageProvider for MemoryStorageProvider
impl IAppserviceStorageProvider for MemoryStorageProvider
fn register_user<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_user_registered<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl ICryptoStorageProvider for MemoryStorageProvider
impl ICryptoStorageProvider for MemoryStorageProvider
fn store_session_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
room_id: &'life1 str,
session_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn session_key<'life0, 'life1, 'async_trait>(
&'life0 self,
room_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl IStorageProvider for MemoryStorageProvider
impl IStorageProvider for MemoryStorageProvider
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + 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<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn keys<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for MemoryStorageProvider
impl !RefUnwindSafe for MemoryStorageProvider
impl Send for MemoryStorageProvider
impl Sync for MemoryStorageProvider
impl Unpin for MemoryStorageProvider
impl UnsafeUnpin for MemoryStorageProvider
impl !UnwindSafe for MemoryStorageProvider
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