Lines Matching defs:events
1 //! Monitoring API for filesystem events.
3 //! Inotify is a Linux-only API to monitor filesystems events.
9 //! Monitor all events happening in directory "test":
16 //! // We add a new watch on directory "test" for all events.
20 //! // We read from our inotify instance for events.
21 //! let events = instance.read_events().unwrap();
22 //! println!("Events: {:?}", events);
87 /// All of the events.
129 /// This cookie is a number that allows you to connect related events. For
185 /// Reads a collection of events from the inotify file descriptor. This call
189 /// Returns as many events as available. If the call was non blocking and no
190 /// events could be read then the EAGAIN error is returned.
195 let mut events = Vec::new();
224 events.push(InotifyEvent {
234 Ok(events)