1 2 3 4 5 6
use std::future::Future; /// Watches the filesystem for changes pub trait FileWatcher: Send + 'static { fn recv(&mut self) -> impl Future<Output = Option<()>> + Send; }