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§
Sourcefn pull(&self, change_id: &str) -> Result<ArtifactBundle, BackendError>
fn pull(&self, change_id: &str) -> Result<ArtifactBundle, BackendError>
Pull the latest artifact bundle for a change from the backend.
Sourcefn push(
&self,
change_id: &str,
bundle: &ArtifactBundle,
) -> Result<PushResult, BackendError>
fn push( &self, change_id: &str, bundle: &ArtifactBundle, ) -> Result<PushResult, BackendError>
Push local artifact updates to the backend with a revision check.