Skip to main content

BackendSyncClient

Trait BackendSyncClient 

Source
pub trait BackendSyncClient {
    // Required methods
    fn pull(&self, change_id: &str) -> Result<ArtifactBundle, BackendError>;
    fn push(
        &self,
        change_id: &str,
        bundle: &ArtifactBundle,
    ) -> Result<PushResult, BackendError>;
}
Expand description

Port for backend artifact synchronization operations.

Pull retrieves the latest artifact bundle for a change. Push sends local updates using optimistic concurrency (revision checks).

Required Methods§

Source

fn pull(&self, change_id: &str) -> Result<ArtifactBundle, BackendError>

Pull the latest artifact bundle for a change from the backend.

Source

fn push( &self, change_id: &str, bundle: &ArtifactBundle, ) -> Result<PushResult, BackendError>

Push local artifact updates to the backend with a revision check.

Implementors§