pub struct AutoSyncTask { /* private fields */ }Expand description
Background task that automatically syncs events
Implementations§
Source§impl AutoSyncTask
impl AutoSyncTask
Sourcepub fn start(
client: Arc<SyncClient>,
storage: Arc<RwLock<EventStorage>>,
config: AutoSyncConfig,
) -> Self
pub fn start( client: Arc<SyncClient>, storage: Arc<RwLock<EventStorage>>, config: AutoSyncConfig, ) -> Self
Start a new auto-sync background task
Sourcepub fn should_sync_on_shutdown(&self) -> bool
pub fn should_sync_on_shutdown(&self) -> bool
Check if auto-sync should sync on shutdown
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoSyncTask
impl RefUnwindSafe for AutoSyncTask
impl Send for AutoSyncTask
impl Sync for AutoSyncTask
impl Unpin for AutoSyncTask
impl UnwindSafe for AutoSyncTask
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