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§
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>)>
Trait Implementations§
impl Collect for &'static dyn CheckpointSynchronizer
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".