pub struct SharedInMemoryLockStore { /* private fields */ }Expand description
Arc-backed in-memory store (preferred).
Implementations§
Trait Implementations§
fn try_acquire<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
ttl: Duration,
) -> Pin<Box<dyn Future<Output = Option<LockGuard>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
token: &'life2 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
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