rustix::fs::inotify

Function remove_watch

Source
pub fn remove_watch(inot: impl AsFd, wd: i32) -> Result<()>
Expand description

inotify_rm_watch(self, wd)—Removes a watch from this inotify.

The watch descriptor provided should have previously been returned by inotify::add_watch and not previously have been removed.