#[non_exhaustive]
pub enum Tag {
Path {
path: PathBuf,
file_type: Option<FileType>,
},
FileEventKind(FileEventKind),
Source(Source),
Process(u32),
Signal(MainSignal),
ProcessCompletion(Option<ProcessEnd>),
}
Expand description
Something which can be used to filter or qualify an event.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Path
Fields
path: PathBuf
Path to the file or directory.
The event is about a path or file in the filesystem.
FileEventKind(FileEventKind)
Kind of a filesystem event (create, remove, modify, etc).
Source(Source)
The general source of the event.
Process(u32)
The event was caused by a particular process.
Signal(MainSignal)
The event is about a signal being delivered to the main process.
ProcessCompletion(Option<ProcessEnd>)
The event is about the subprocess ending.
Implementations
The name of the variant.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl UnwindSafe for Tag
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more