pub struct FileCoordinationStore { /* private fields */ }Expand description
Durable single-control-plane coordination schema store.
The file provider certifies schema ownership and crash-consistent metadata for deployments in which one control-plane service owns the data directory. Runtime nodes never receive database credentials through this contract.
Implementations§
Source§impl FileCoordinationStore
impl FileCoordinationStore
Sourcepub fn open(root: impl Into<PathBuf>) -> ProviderResult<Self>
pub fn open(root: impl Into<PathBuf>) -> ProviderResult<Self>
Opens a store, creating or transactionally migrating metadata to V2.
Sourcepub fn backup_to(&self, destination: impl AsRef<Path>) -> ProviderResult<()>
pub fn backup_to(&self, destination: impl AsRef<Path>) -> ProviderResult<()>
Writes a validated metadata backup using atomic replacement.
Sourcepub fn restore_from(&self, source: impl AsRef<Path>) -> ProviderResult<()>
pub fn restore_from(&self, source: impl AsRef<Path>) -> ProviderResult<()>
Restores validated metadata and reruns forward-only migrations.
Trait Implementations§
Source§impl CoordinationStoreProvider for FileCoordinationStore
impl CoordinationStoreProvider for FileCoordinationStore
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.
Auto Trait Implementations§
impl !Freeze for FileCoordinationStore
impl RefUnwindSafe for FileCoordinationStore
impl Send for FileCoordinationStore
impl Sync for FileCoordinationStore
impl Unpin for FileCoordinationStore
impl UnsafeUnpin for FileCoordinationStore
impl UnwindSafe for FileCoordinationStore
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