Skip to main content

Queueable

Trait Queueable 

Source
pub trait Queueable: Sized {
    // Provided methods
    fn queued(self) -> QueuedRepository<Self, InMemoryLockManager> { ... }
    fn queued_with<L: LockManager>(
        self,
        lock_manager: L,
    ) -> QueuedRepository<Self, L> { ... }
}
Expand description

Builder trait for wrapping a repository with queue locking.

Provided Methods§

Source

fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>

Wrap with the default async lock manager. Pair with .aggregate::<T>() for per-aggregate serialization over the async repository surface.

Source

fn queued_with<L: LockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>

Wrap with a custom async lock manager.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> Queueable for T