pub struct SyncEngine { /* private fields */ }Expand description
Sync engine for orchestrating data synchronization
Implementations§
Source§impl SyncEngine
impl SyncEngine
Sourcepub fn new(client: GarminClient, token: OAuth2Token) -> Result<Self>
pub fn new(client: GarminClient, token: OAuth2Token) -> Result<Self>
Create a new sync engine with default storage location
Sourcepub fn with_storage(
storage: Storage,
client: GarminClient,
token: OAuth2Token,
) -> Result<Self>
pub fn with_storage( storage: Storage, client: GarminClient, token: OAuth2Token, ) -> Result<Self>
Create a new sync engine with custom storage
Sourcepub async fn run(&mut self, opts: SyncOptions) -> Result<SyncStats>
pub async fn run(&mut self, opts: SyncOptions) -> Result<SyncStats>
Run the sync process
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