Struct distant_core::Watcher
source · pub struct Watcher { /* private fields */ }
Expand description
Represents a watcher of some path on a remote machine
Implementations§
source§impl Watcher
impl Watcher
sourcepub async fn watch(
channel: DistantChannel,
path: impl Into<PathBuf>,
recursive: bool,
only: impl Into<ChangeKindSet>,
except: impl Into<ChangeKindSet>
) -> Result<Self>
pub async fn watch( channel: DistantChannel, path: impl Into<PathBuf>, recursive: bool, only: impl Into<ChangeKindSet>, except: impl Into<ChangeKindSet> ) -> Result<Self>
Creates a watcher for some remote path
sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Returns true if the watcher is still actively watching for changes
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Watcher
impl Send for Watcher
impl Sync for Watcher
impl Unpin for Watcher
impl !UnwindSafe for Watcher
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