pub struct InMemoryProjectorCoordinator { /* private fields */ }Expand description
In-memory projector coordinator for single-process deployments.
InMemoryProjectorCoordinator provides coordination for projectors within a single
process using an in-memory lock table. This is suitable for testing and single-process
deployments where distributed coordination is not required.
For distributed deployments with multiple process instances, use a database-backed coordinator implementation (e.g., PostgreSQL advisory locks).
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryProjectorCoordinator
impl Clone for InMemoryProjectorCoordinator
Source§fn clone(&self) -> InMemoryProjectorCoordinator
fn clone(&self) -> InMemoryProjectorCoordinator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryProjectorCoordinator
impl Debug for InMemoryProjectorCoordinator
Source§impl Default for InMemoryProjectorCoordinator
impl Default for InMemoryProjectorCoordinator
Source§fn default() -> InMemoryProjectorCoordinator
fn default() -> InMemoryProjectorCoordinator
Returns the “default value” for a type. Read more
Source§impl ProjectorCoordinator for InMemoryProjectorCoordinator
impl ProjectorCoordinator for InMemoryProjectorCoordinator
Source§type Error = InMemoryCoordinationError
type Error = InMemoryCoordinationError
Error type returned when leadership acquisition fails. Read more
Source§type Guard = InMemoryCoordinationGuard
type Guard = InMemoryCoordinationGuard
Guard type that releases leadership when dropped. Read more
Auto Trait Implementations§
impl Freeze for InMemoryProjectorCoordinator
impl RefUnwindSafe for InMemoryProjectorCoordinator
impl Send for InMemoryProjectorCoordinator
impl Sync for InMemoryProjectorCoordinator
impl Unpin for InMemoryProjectorCoordinator
impl UnwindSafe for InMemoryProjectorCoordinator
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