pub struct Watch { /* private fields */ }Expand description
A file watched on a thread of its own: on_change runs there whenever
the file’s size or modification time moved since the last look. The
thread stops when the Watch drops.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Watch
impl Freeze for Watch
impl RefUnwindSafe for Watch
impl Send for Watch
impl Sync for Watch
impl Unpin for Watch
impl UnsafeUnpin for Watch
impl UnwindSafe for Watch
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