pub struct InMemoryLockStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for InMemoryLockStore
impl Default for InMemoryLockStore
Source§impl LockStore for InMemoryLockStore
impl LockStore for InMemoryLockStore
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§
impl !Freeze for InMemoryLockStore
impl !RefUnwindSafe for InMemoryLockStore
impl Forget for InMemoryLockStore
impl Send for InMemoryLockStore
impl Sync for InMemoryLockStore
impl Unpin for InMemoryLockStore
impl UnsafeUnpin for InMemoryLockStore
impl UnwindSafe for InMemoryLockStore
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