pub struct FileMonitor { /* private fields */ }Implementations§
Source§impl FileMonitor
impl FileMonitor
pub fn new(watched_directories: Vec<PathBuf>, check_interval: Duration) -> Self
pub async fn start_monitoring<F>(&self, _on_change: F) -> Result<()>
pub fn add_directory(&mut self, path: PathBuf)
pub fn remove_directory(&mut self, path: &PathBuf)
Auto Trait Implementations§
impl Freeze for FileMonitor
impl RefUnwindSafe for FileMonitor
impl Send for FileMonitor
impl Sync for FileMonitor
impl Unpin for FileMonitor
impl UnsafeUnpin for FileMonitor
impl UnwindSafe for FileMonitor
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