pub struct SyncService { /* private fields */ }
Expand description
Background sync service
Implementations§
Source§impl SyncService
impl SyncService
Sourcepub async fn monitor_workspace(
&self,
workspace_id: &str,
directory: &str,
) -> Result<()>
pub async fn monitor_workspace( &self, workspace_id: &str, directory: &str, ) -> Result<()>
Start monitoring a workspace
Sourcepub async fn stop_monitoring_workspace(&self, workspace_id: &str) -> Result<()>
pub async fn stop_monitoring_workspace(&self, workspace_id: &str) -> Result<()>
Stop monitoring a workspace
Sourcepub async fn is_workspace_monitored(&self, workspace_id: &str) -> bool
pub async fn is_workspace_monitored(&self, workspace_id: &str) -> bool
Get monitoring status
Auto Trait Implementations§
impl Freeze for SyncService
impl !RefUnwindSafe for SyncService
impl Send for SyncService
impl Sync for SyncService
impl Unpin for SyncService
impl !UnwindSafe for SyncService
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