pub type EventOwned = Event<OsString>;
Expand description
An owned version of Event
Aliased Type§
pub struct EventOwned {
pub wd: WatchDescriptor,
pub mask: EventMask,
pub cookie: u32,
pub name: Option<OsString>,
}
Fields§
§wd: WatchDescriptor
Identifies the watch this event originates from
This WatchDescriptor
is equal to the one that Watches::add
returned when interest for this event was registered. The
WatchDescriptor
can be used to remove the watch using
Watches::remove
, thereby preventing future events of this type
from being created.
mask: EventMask
Indicates what kind of event this is
Connects related events to each other
When a file is renamed, this results two events: MOVED_FROM
and
MOVED_TO
. The cookie
field will be the same for both of them,
thereby making is possible to connect the event pair.
name: Option<OsString>
The name of the file the event originates from
This field is set only if the subject of the event is a file or directory in a
watched directory. If the event concerns a file or directory that is
watched directly, name
will be None
.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes