pub struct SyncManager { /* private fields */ }Implementations§
Source§impl SyncManager
impl SyncManager
pub fn new() -> Self
pub async fn start_transaction( &self, operations: Vec<Operation>, ) -> Result<String>
pub async fn get_transaction(&self, txn_id: &str) -> Result<Option<Transaction>>
pub async fn commit_transaction(&self, txn_id: &str) -> Result<()>
pub async fn rollback_transaction(&self, txn_id: &str) -> Result<()>
pub async fn sync_configuration( &self, source_project: &str, target_projects: &[String], config_data: Value, ) -> Result<()>
pub async fn sync_version_updates( &self, source_project: &str, new_version: &str, dependent_projects: &[String], ) -> Result<()>
pub async fn detect_conflicts( &self, project: &str, incoming_data: &Value, ) -> Result<Vec<SyncConflict>>
pub async fn resolve_conflict( &self, conflict: &SyncConflict, strategy: ConflictResolution, ) -> Result<()>
pub async fn get_conflicts(&self) -> Vec<SyncConflict>
pub async fn get_sync_log(&self) -> Vec<SyncLogEntry>
pub async fn clear_sync_log(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncManager
impl !RefUnwindSafe for SyncManager
impl Send for SyncManager
impl Sync for SyncManager
impl Unpin for SyncManager
impl !UnwindSafe for SyncManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more