pub struct SyncWatcher { /* private fields */ }
Expand description
File system watcher for workspace sync
Implementations§
Source§impl SyncWatcher
impl SyncWatcher
Sourcepub async fn start_monitoring(
&mut self,
workspace_id: &str,
directory: &str,
) -> Result<()>
pub async fn start_monitoring( &mut self, workspace_id: &str, directory: &str, ) -> Result<()>
Start monitoring a workspace directory
Sourcepub async fn stop_monitoring(&mut self, workspace_id: &str) -> Result<()>
pub async fn stop_monitoring(&mut self, workspace_id: &str) -> Result<()>
Stop monitoring a workspace
Sourcepub async fn is_monitoring(&self, workspace_id: &str) -> bool
pub async fn is_monitoring(&self, workspace_id: &str) -> bool
Get monitoring status
Sourcepub fn get_monitored_workspaces(&self) -> Vec<String>
pub fn get_monitored_workspaces(&self) -> Vec<String>
Get list of monitored workspaces
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncWatcher
impl !RefUnwindSafe for SyncWatcher
impl Send for SyncWatcher
impl Sync for SyncWatcher
impl Unpin for SyncWatcher
impl !UnwindSafe for SyncWatcher
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