weave-agentfs-diff · watcher
Source declarations, signatures and documentation for watcher.
Source: sigil/weave/local/agentfs-diff/src/watcher.rs. SHA-256: 905ba8287889078fb8700090df0d87d3cbd67b9dad801f8b642361a9d49c6b9f.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
watcher::WatchOptions
Watch options for real-time monitoring
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WatchOptions {
/// Polling interval
pub interval: Duration,
/// Initial scan on start
pub initial_scan: bool,
/// Diff options
pub diff_options: DiffOptions,
/// Debounce duration for changes
pub debounce: Duration
}Source line: 26.
watcher::DiffWatcher
Real-time diff watcher
pub struct DiffWatcher {
}Source line: 52.
watcher::DiffWatcher::new
Create a new diff watcher
pub fn new(
source: Arc<dyn FileSystem>,
target: Arc<dyn FileSystem>,
options: WatchOptions,
) -> Self;Source line: 77.
watcher::DiffWatcher::start
Start watching for changes
pub async fn start(&mut self) -> Result<()>;Source line: 96.
watcher::DiffWatcher::stop
Stop watching
pub fn stop(&mut self);Source line: 172.
watcher::DiffWatcher::receiver
Get receiver for diff events
pub fn receiver(&mut self) -> Option<mpsc::UnboundedReceiver<Diff>>;Source line: 179.