pub struct SyncWatcher { /* private fields */ }👎Deprecated:
Will be extracted to mockforge-workspace crate
Expand description
File system watcher for workspace sync
Implementations§
Source§impl SyncWatcher
impl SyncWatcher
Sourcepub fn new<P: AsRef<Path>>(workspace_dir: P) -> Self
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn new<P: AsRef<Path>>(workspace_dir: P) -> Self
Will be extracted to mockforge-workspace crate
Create a new sync watcher
Sourcepub async fn start_monitoring(
&mut self,
workspace_id: &str,
directory: &str,
) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn start_monitoring( &mut self, workspace_id: &str, directory: &str, ) -> Result<()>
Will be extracted to mockforge-workspace crate
Start monitoring a workspace directory
Sourcepub async fn stop_monitoring(&mut self, workspace_id: &str) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn stop_monitoring(&mut self, workspace_id: &str) -> Result<()>
Will be extracted to mockforge-workspace crate
Stop monitoring a workspace
Sourcepub async fn stop_all(&mut self) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn stop_all(&mut self) -> Result<()>
Will be extracted to mockforge-workspace crate
Stop all monitoring
Sourcepub async fn is_monitoring(&self, workspace_id: &str) -> bool
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn is_monitoring(&self, workspace_id: &str) -> bool
Will be extracted to mockforge-workspace crate
Get monitoring status
Sourcepub fn get_monitored_workspaces(&self) -> Vec<String>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_monitored_workspaces(&self) -> Vec<String>
Will be extracted to mockforge-workspace crate
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 UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more