pub struct SESSION_STORE { /* private fields */ }Methods from Deref<Target = Mutex<CriticalSectionRawMutex, HashMap<String, SessionState>>>§
Sourcepub fn lock(&self) -> impl Future<Output = MutexGuard<'_, M, T>>
pub fn lock(&self) -> impl Future<Output = MutexGuard<'_, M, T>>
Lock the mutex.
This will wait for the mutex to be unlocked if it’s already locked.
Sourcepub fn try_lock(&self) -> Result<MutexGuard<'_, M, T>, TryLockError>
pub fn try_lock(&self) -> Result<MutexGuard<'_, M, T>, TryLockError>
Attempt to immediately lock the mutex.
If the mutex is already locked, this will return an error instead of waiting.
Trait Implementations§
Source§impl Deref for SESSION_STORE
impl Deref for SESSION_STORE
Source§type Target = Mutex<CriticalSectionRawMutex, HashMap<String, SessionState>>
type Target = Mutex<CriticalSectionRawMutex, HashMap<String, SessionState>>
The resulting type after dereferencing.
Source§fn deref(
&self,
) -> &Mutex<CriticalSectionRawMutex, HashMap<String, SessionState>>
fn deref( &self, ) -> &Mutex<CriticalSectionRawMutex, HashMap<String, SessionState>>
Dereferences the value.
impl LazyStatic for SESSION_STORE
Auto Trait Implementations§
impl Freeze for SESSION_STORE
impl RefUnwindSafe for SESSION_STORE
impl Send for SESSION_STORE
impl Sync for SESSION_STORE
impl Unpin for SESSION_STORE
impl UnwindSafe for SESSION_STORE
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