Enum watchexec_events::Tag
source · #[non_exhaustive]pub enum Tag {
Path {
path: PathBuf,
file_type: Option<FileType>,
},
FileEventKind(FileEventKind),
Source(Source),
Keyboard(Keyboard),
Process(u32),
Signal(Signal),
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
The event is about a path or file in the filesystem.
Fields
FileEventKind(FileEventKind)
Kind of a filesystem event (create, remove, modify, etc).
Source(Source)
The general source of the event.
Keyboard(Keyboard)
The event is about a keyboard input.
Process(u32)
The event was caused by a particular process.
Signal(Signal)
The event is about a signal being delivered to the main process.
ProcessCompletion(Option<ProcessEnd>)
The event is about a subprocess ending.
Implementations§
Trait Implementations§
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more