pub trait ReleaseCheckpointStore: Send + Sync {
// Required methods
async fn create_release_checkpoint(
&self,
authorization: &MaintenanceAuthorizationGrant,
request: CheckpointRequest,
) -> Result<ReleaseCheckpointCreationResult, StoreError>;
async fn restore_verify_release_checkpoint(
&self,
authorization: &MaintenanceAuthorizationGrant,
manifest: &CheckpointManifest,
) -> Result<ReleaseCheckpointRestoreVerificationResult, StoreError>;
}Expand description
Authorized, deadline-bounded Store checkpoint capability.
The non-forgeable MaintenanceAuthorizationGrant keeps this API separate
from ordinary administrative storage operations.
Required Methods§
Sourceasync fn create_release_checkpoint(
&self,
authorization: &MaintenanceAuthorizationGrant,
request: CheckpointRequest,
) -> Result<ReleaseCheckpointCreationResult, StoreError>
async fn create_release_checkpoint( &self, authorization: &MaintenanceAuthorizationGrant, request: CheckpointRequest, ) -> Result<ReleaseCheckpointCreationResult, 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.
Sourceasync fn restore_verify_release_checkpoint(
&self,
authorization: &MaintenanceAuthorizationGrant,
manifest: &CheckpointManifest,
) -> Result<ReleaseCheckpointRestoreVerificationResult, StoreError>
async fn restore_verify_release_checkpoint( &self, authorization: &MaintenanceAuthorizationGrant, manifest: &CheckpointManifest, ) -> Result<ReleaseCheckpointRestoreVerificationResult, 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".