pub struct SyncEngine { /* private fields */ }Implementations§
Source§impl SyncEngine
impl SyncEngine
pub fn new() -> Self
pub fn with_storage(self, storage: Box<dyn Storage>) -> Self
pub fn client_id(&self) -> &ClientId
pub async fn sync(&self, board_id: &BoardId) -> Result<SyncResult, Error>
pub async fn push( &self, board_id: &BoardId, changes: &[TaskOp], ) -> Result<usize, Error>
pub async fn pull( &self, board_id: &BoardId, since: Version, ) -> Result<Changeset, Error>
pub async fn get_local_version( &self, board_id: &BoardId, ) -> Result<Version, Error>
Trait Implementations§
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