#[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
sourceimpl Tag
impl Tag
sourcepub const fn discriminant_name(&self) -> &'static str
pub const fn discriminant_name(&self) -> &'static str
The name of the variant.
Trait Implementations
sourceimpl PartialEq<Tag> for Tag
impl PartialEq<Tag> for Tag
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more