pub struct EdgeSyncService { /* private fields */ }Expand description
Edge Synchronization Service
Implementations§
Source§impl EdgeSyncService
impl EdgeSyncService
Sourcepub async fn create_sync_operation(
&self,
source_node: Uuid,
target_node: Uuid,
data_type: String,
data: Value,
) -> Uuid
pub async fn create_sync_operation( &self, source_node: Uuid, target_node: Uuid, data_type: String, data: Value, ) -> Uuid
Create a sync operation
Sourcepub async fn sync_to_cloud(
&self,
sync_id: Uuid,
) -> Result<(), EdgeComputingError>
pub async fn sync_to_cloud( &self, sync_id: Uuid, ) -> Result<(), EdgeComputingError>
Execute synchronization
Sourcepub async fn get_sync_status(&self, sync_id: Uuid) -> Option<SyncStatus>
pub async fn get_sync_status(&self, sync_id: Uuid) -> Option<SyncStatus>
Get sync operation status
Sourcepub async fn get_pending_syncs(&self) -> Vec<SyncOperation>
pub async fn get_pending_syncs(&self) -> Vec<SyncOperation>
Get pending sync operations
Auto Trait Implementations§
impl !RefUnwindSafe for EdgeSyncService
impl !UnwindSafe for EdgeSyncService
impl Freeze for EdgeSyncService
impl Send for EdgeSyncService
impl Sync for EdgeSyncService
impl Unpin for EdgeSyncService
impl UnsafeUnpin for EdgeSyncService
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