pub struct InMemoryCoordinationStore { /* private fields */ }Expand description
Deterministic coordination store for embedded control planes and tests.
Implementations§
Source§impl InMemoryCoordinationStore
impl InMemoryCoordinationStore
Sourcepub fn with_schema_version(schema_version: u64) -> Self
pub fn with_schema_version(schema_version: u64) -> Self
Creates a store at an explicit schema version for migration tests.
Sourcepub fn set_healthy(&self, healthy: bool)
pub fn set_healthy(&self, healthy: bool)
Changes the deterministic health result.
Trait Implementations§
Source§impl CoordinationStoreProvider for InMemoryCoordinationStore
impl CoordinationStoreProvider for InMemoryCoordinationStore
Source§fn schema_version(&self) -> ProviderResult<u64>
fn schema_version(&self) -> ProviderResult<u64>
Returns the latest migration version applied by the provider.
Source§fn health(&self) -> ProviderResult<()>
fn health(&self) -> ProviderResult<()>
Verifies backend connectivity and schema access.
Source§fn ensure_compatible(&self) -> ProviderResult<()>
fn ensure_compatible(&self) -> ProviderResult<()>
Rejects stores that do not implement the schema required by this Runtime.
Source§impl Debug for InMemoryCoordinationStore
impl Debug for InMemoryCoordinationStore
Auto Trait Implementations§
impl !Freeze for InMemoryCoordinationStore
impl RefUnwindSafe for InMemoryCoordinationStore
impl Send for InMemoryCoordinationStore
impl Sync for InMemoryCoordinationStore
impl Unpin for InMemoryCoordinationStore
impl UnsafeUnpin for InMemoryCoordinationStore
impl UnwindSafe for InMemoryCoordinationStore
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