pub struct SyncService { /* private fields */ }👎Deprecated:
Will be extracted to mockforge-workspace crate
Expand description
Background sync service
Implementations§
Source§impl SyncService
impl SyncService
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 service
Sourcepub async fn start(&self) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn start(&self) -> Result<()>
Will be extracted to mockforge-workspace crate
Start the sync service
Sourcepub async fn stop(&self) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn stop(&self) -> Result<()>
Will be extracted to mockforge-workspace crate
Stop the sync service
Sourcepub async fn monitor_workspace(
&self,
workspace_id: &str,
directory: &str,
) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn monitor_workspace( &self, workspace_id: &str, directory: &str, ) -> Result<()>
Will be extracted to mockforge-workspace crate
Start monitoring a workspace
Sourcepub async fn stop_monitoring_workspace(&self, workspace_id: &str) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn stop_monitoring_workspace(&self, workspace_id: &str) -> Result<()>
Will be extracted to mockforge-workspace crate
Stop monitoring a workspace
Sourcepub async fn is_workspace_monitored(&self, workspace_id: &str) -> bool
👎Deprecated: Will be extracted to mockforge-workspace crate
pub async fn is_workspace_monitored(&self, workspace_id: &str) -> bool
Will be extracted to mockforge-workspace crate
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 UnsafeUnpin 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
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