pub struct SyncEngine { /* private fields */ }Implementations§
Source§impl SyncEngine
impl SyncEngine
pub fn new( paths: SyncorPaths, transport: Box<dyn SyncTransport + Send + Sync>, ) -> Self
pub fn init_link(&self, link: &LinkInfo) -> Result<()>
Sourcepub fn restore_latest(&self, link: &LinkInfo) -> Result<PullSyncResult>
pub fn restore_latest(&self, link: &LinkInfo) -> Result<PullSyncResult>
Restore the latest snapshot to the local directory. Used for initial connect when the repo already has data.
pub fn push(&self, link: &LinkInfo) -> Result<PushSyncResult>
pub fn pull(&self, link: &LinkInfo) -> Result<PullSyncResult>
Auto Trait Implementations§
impl Freeze for SyncEngine
impl !RefUnwindSafe for SyncEngine
impl Send for SyncEngine
impl Sync for SyncEngine
impl Unpin for SyncEngine
impl UnsafeUnpin for SyncEngine
impl !UnwindSafe for SyncEngine
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