pub struct FileWatcherSubscriber { /* private fields */ }Expand description
Handle used to register watched paths for one logical consumer.
Implementations§
Source§impl FileWatcherSubscriber
impl FileWatcherSubscriber
Sourcepub fn register_paths(&self, watched_paths: Vec<WatchPath>) -> WatchRegistration
pub fn register_paths(&self, watched_paths: Vec<WatchPath>) -> WatchRegistration
Registers the provided paths for this subscriber and returns an RAII guard that unregisters them on drop.
Trait Implementations§
Source§impl Drop for FileWatcherSubscriber
impl Drop for FileWatcherSubscriber
Auto Trait Implementations§
impl Freeze for FileWatcherSubscriber
impl RefUnwindSafe for FileWatcherSubscriber
impl Send for FileWatcherSubscriber
impl Sync for FileWatcherSubscriber
impl Unpin for FileWatcherSubscriber
impl UnsafeUnpin for FileWatcherSubscriber
impl UnwindSafe for FileWatcherSubscriber
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