#[non_exhaustive]
pub enum Source {
Filesystem,
Keyboard,
Mouse,
Os,
Time,
Internal,
}
Expand description
The general origin of the event.
This is set by the event source. Note that not all of these are currently used.
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.
Filesystem
Event comes from a file change.
Keyboard
Event comes from a keyboard input.
Mouse
Event comes from a mouse click.
Os
Event comes from the OS.
Time
Event is time based.
Internal
Event is internal to Watchexec.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
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