pub struct InMemoryAsyncLockManager { /* private fields */ }Expand description
In-memory AsyncLockManager backed by a HashMap<String, Arc<InMemoryAsyncLock>>.
Lazily creates one InMemoryAsyncLock per unique key and returns the same
Arc for repeated lookups — the async counterpart to
InMemoryLockManager.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for InMemoryAsyncLockManager
impl RefUnwindSafe for InMemoryAsyncLockManager
impl Send for InMemoryAsyncLockManager
impl Sync for InMemoryAsyncLockManager
impl Unpin for InMemoryAsyncLockManager
impl UnsafeUnpin for InMemoryAsyncLockManager
impl UnwindSafe for InMemoryAsyncLockManager
Blanket Implementations§
Source§impl<T> AsyncAggregateBuilder for T
impl<T> AsyncAggregateBuilder for T
fn async_aggregate<A: Aggregate>(self) -> AsyncAggregateRepository<Self, A>
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
Source§impl<T> Queueable for T
impl<T> Queueable for T
Source§fn queued_async(self) -> QueuedRepository<Self, InMemoryAsyncLockManager>
fn queued_async(self) -> QueuedRepository<Self, InMemoryAsyncLockManager>
Wrap with the default async lock manager. Pair with
.async_aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_async_with<L: AsyncLockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_async_with<L: AsyncLockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.