Skip to main content

CoordinationStoreProvider

Trait CoordinationStoreProvider 

Source
pub trait CoordinationStoreProvider: Send + Sync {
    // Required methods
    fn schema_version(&self) -> ProviderResult<u64>;
    fn health(&self) -> ProviderResult<()>;

    // Provided method
    fn ensure_compatible(&self) -> ProviderResult<()> { ... }
}
Expand description

Backend contract for the Runtime-owned coordination schema.

Runtime nodes normally reach this store through a control-plane provider. This contract exists for control-plane implementations and deliberately does not expose generic business-data reads or writes.

Required Methods§

Source

fn schema_version(&self) -> ProviderResult<u64>

Returns the latest migration version applied by the provider.

Source

fn health(&self) -> ProviderResult<()>

Verifies backend connectivity and schema access.

Provided Methods§

Source

fn ensure_compatible(&self) -> ProviderResult<()>

Rejects stores that do not implement the schema required by this Runtime.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§