Struct notify::Event
[−]
[src]
pub struct Event { pub path: Option<PathBuf>, pub op: Result<Op>, }
Event delivered when action occurs on a watched path
When using the poll watcher, op
may be Err in the case where getting metadata for the path
fails.
When using the INotifyWatcher, op
may be Err if activity is detected on the file and there is
an error reading from inotify.
Fields
path: Option<PathBuf>
Path where Event originated
op: Result<Op>
Operation detected on Path.