pub struct DebouncedWatcher { /* private fields */ }Expand description
A file-system watcher that debounces rapid change events.
Implementations§
Source§impl DebouncedWatcher
impl DebouncedWatcher
Sourcepub fn start(
path: PathBuf,
debounce_duration: Duration,
sender: Sender<WatchEvent>,
) -> Result<Self>
pub fn start( path: PathBuf, debounce_duration: Duration, sender: Sender<WatchEvent>, ) -> Result<Self>
Start watching path recursively.
A single WatchEvent is sent to sender after debounce_duration
has elapsed with no further fs events.
Auto Trait Implementations§
impl Freeze for DebouncedWatcher
impl RefUnwindSafe for DebouncedWatcher
impl Send for DebouncedWatcher
impl Sync for DebouncedWatcher
impl Unpin for DebouncedWatcher
impl UnsafeUnpin for DebouncedWatcher
impl UnwindSafe for DebouncedWatcher
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