Skip to main content

CheckpointSynchronizer

Trait CheckpointSynchronizer 

Source
pub trait CheckpointSynchronizer: Sync {
    // Required methods
    fn push(
        &self,
        checkpoint: Uuid,
        storage: Arc<dyn StorageBackend>,
        remote_config: SyncConfig,
    ) -> Result<Option<CheckpointSyncMetrics>>;
    fn pull(
        &self,
        storage: Arc<dyn StorageBackend>,
        remote_config: SyncConfig,
    ) -> Result<(CheckpointMetadata, Option<CheckpointSyncMetrics>)>;
}

Required Methods§

Source

fn push( &self, checkpoint: Uuid, storage: Arc<dyn StorageBackend>, remote_config: SyncConfig, ) -> Result<Option<CheckpointSyncMetrics>>

Source

fn pull( &self, storage: Arc<dyn StorageBackend>, remote_config: SyncConfig, ) -> Result<(CheckpointMetadata, Option<CheckpointSyncMetrics>)>

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§