Enum watchexec_events::Tag
source · 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§
Path
Fields
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.
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 StructuralEq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
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