inotify-rs icon indicating copy to clipboard operation
inotify-rs copied to clipboard

Review `Inotify::add_watch` and `WatchMask`

Open hannobraun opened this issue 6 years ago • 0 comments

When adding a watch using Inotify::add_watch, a WatchMask must be passed. This WatchMask defines which events should be watched and how to watch them. These two things, which events to watch for, and the configuration of that watch, could be considered separate concerns.

I'm thinking it may be better to split WatchMask into two parameters, but I'm not sure at this point.

hannobraun avatar Oct 11 '17 09:10 hannobraun