[−][src]Struct inotify::Event
An inotify event
A file system event that describes a change that the user previously
registered interest in. To watch for events, call Inotify::add_watch
. To
retrieve events, call Inotify::read_events_blocking
or
Inotify::read_events
.
Fields
wd: WatchDescriptor
Identifies the watch this event originates from
This WatchDescriptor
is equal to the one that Inotify::add_watch
returned when interest for this event was registered. The
WatchDescriptor
can be used to remove the watch using
Inotify::rm_watch
, 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<S>
The name of the file the event originates from
This field is set only if the subject of the event is a file in a
watched directory. If the event concerns a file or directory that is
watched directly, name
will be None
.
Trait Implementations
Auto Trait Implementations
impl<S> Send for Event<S> where
S: Send,
S: Send,
impl<S> Unpin for Event<S> where
S: Unpin,
S: Unpin,
impl<S> Sync for Event<S> where
S: Sync,
S: Sync,
impl<S> UnwindSafe for Event<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Event<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,