Skip to main content

ReleaseCheckpointStore

Trait ReleaseCheckpointStore 

Source
pub trait ReleaseCheckpointStore: Send + Sync {
    // Required methods
    async fn create_release_checkpoint(
        &self,
        authorization: &MaintenanceAuthorizationGrant,
        request: CheckpointRequest,
    ) -> Result<ReleaseCheckpointCreateOutcome, StoreError>;
    async fn restore_verify_release_checkpoint(
        &self,
        authorization: &MaintenanceAuthorizationGrant,
        manifest: &CheckpointManifest,
    ) -> Result<ReleaseCheckpointRestoreOutcome, StoreError>;
}
Expand description

Authorized, deadline-bounded Store checkpoint capability.

The non-forgeable MaintenanceAuthorizationGrant keeps this API separate from ordinary administrative storage operations.

Required Methods§

Source

async fn create_release_checkpoint( &self, authorization: &MaintenanceAuthorizationGrant, request: CheckpointRequest, ) -> Result<ReleaseCheckpointCreateOutcome, StoreError>

Flushes the Store barrier and creates a checksummed checkpoint artifact.

§Errors

Returns an expected rejection for authorization, conflicts, or resource limits. Operational failures are returned as StoreError with crate::StoreOperation::Flush.

Source

async fn restore_verify_release_checkpoint( &self, authorization: &MaintenanceAuthorizationGrant, manifest: &CheckpointManifest, ) -> Result<ReleaseCheckpointRestoreOutcome, StoreError>

Verifies that a checkpoint can be restored without replacing its WAL or persistent volume identity.

§Errors

Returns an expected rejection for authorization decisions. Operational verification failures are returned as StoreError with crate::StoreOperation::Read.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§