pub struct SyncManager { /* private fields */ }Expand description
Sync manager
Implementations§
Source§impl SyncManager
impl SyncManager
Sourcepub fn add_pending(&self, item: SyncItem)
pub fn add_pending(&self, item: SyncItem)
Add item to pending sync queue
Sourcepub fn statistics(&self) -> SyncStatistics
pub fn statistics(&self) -> SyncStatistics
Get sync statistics
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if sync is running
Sourcepub fn set_protocol(&mut self, protocol: Arc<dyn SyncProtocol>)
pub fn set_protocol(&mut self, protocol: Arc<dyn SyncProtocol>)
Set sync protocol (for testing)
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 UnsafeUnpin 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