pub struct InotifyEvent {
    pub wd: WatchDescriptor,
    pub mask: AddWatchFlags,
    pub cookie: u32,
    pub name: Option<OsString>,
}
Expand description

A single inotify event.

For more documentation see, inotify(7).

Fields

wd: WatchDescriptor

Watch descriptor. This field corresponds to the watch descriptor you were issued when calling add_watch. It allows you to know which watch this event comes from.

mask: AddWatchFlags

Event mask. This field is a bitfield describing the exact event that occured.

cookie: u32

This cookie is a number that allows you to connect related events. For now only IN_MOVED_FROM and IN_MOVED_TO can be connected.

name: Option<OsString>

Filename. This field exists only if the event was triggered for a file inside the watched directory.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.