As inotify watch descriptors don't have an order per se, an alternative would be to make the id field public outside of the crate, so users of this library can implement a wrapper that implements traits based on id. Otherwise some data structures can't use a WatchDescriptor as a key which can be useful (i.e. BTreeMap<WatchDescriptor, PathBuf>).
As inotify watch descriptors don't have an order per se, an alternative would be to make the
id
field public outside of the crate, so users of this library can implement a wrapper that implements traits based onid
. Otherwise some data structures can't use aWatchDescriptor
as a key which can be useful (i.e.BTreeMap<WatchDescriptor, PathBuf>
).