pub struct InMemorySessionData<K = String, V = String> { /* private fields */ }Implementations§
Source§impl<K, V> InMemorySessionData<K, V>
impl<K, V> InMemorySessionData<K, V>
Trait Implementations§
Source§impl<K, V> CreateNew for InMemorySessionData<K, V>
impl<K, V> CreateNew for InMemorySessionData<K, V>
Source§impl<K, V> SessionDataValueStorage<K, V> for InMemorySessionData<K, V>
impl<K, V> SessionDataValueStorage<K, V> for InMemorySessionData<K, V>
fn set_value<'life0, 'async_trait, KVal, VVal>( &'life0 self, key: KVal, val: VVal, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn unset_value<'life0, 'async_trait, KVal>( &'life0 self, key: KVal, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn get_value<'life0, 'life1, 'async_trait, KRef>( &'life0 self, key: &'life1 KRef, ) -> Pin<Box<dyn Future<Output = Result<Option<V>>> + Send + 'async_trait>>
Source§impl<U> UserSession for InMemorySessionData<String, U>
impl<U> UserSession for InMemorySessionData<String, U>
type User = U
fn set_user<'life0, 'async_trait>(
&'life0 self,
user: U,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unset_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn current_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::User>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<K = String, V = String> !Freeze for InMemorySessionData<K, V>
impl<K = String, V = String> !RefUnwindSafe for InMemorySessionData<K, V>
impl<K, V> Send for InMemorySessionData<K, V>
impl<K, V> Sync for InMemorySessionData<K, V>
impl<K, V> Unpin for InMemorySessionData<K, V>
impl<K, V> UnwindSafe for InMemorySessionData<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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