pub struct FileSystemWatcher {
pub glob_pattern: String,
pub kind: Option<Uinteger>,
}Fields§
§glob_pattern: StringThe glob pattern to watch.
Glob patterns can have the following syntax:
*to match one or more characters in a path segment?to match on one character in a path segment**to match any number of path segments, including none{}to group sub patterns into an OR expression. (e.g.**/*.{ts,js}matches all TypeScript and JavaScript files)[]to declare a range of characters to match in a path segment (e.g.,example.[0-9]to match onexample.0,example.1, …)[!...]to negate a range of characters to match in a path segment (e.g.,example.[!0-9]to match onexample.a,example.b, but notexample.0)
kind: Option<Uinteger>The kind of events of interest. If omitted it defaults to WatchKind.Create | WatchKind.Change | WatchKind.Delete which is 7.
Trait Implementations§
Source§impl Clone for FileSystemWatcher
impl Clone for FileSystemWatcher
Source§fn clone(&self) -> FileSystemWatcher
fn clone(&self) -> FileSystemWatcher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileSystemWatcher
impl Debug for FileSystemWatcher
Source§impl Default for FileSystemWatcher
impl Default for FileSystemWatcher
Source§fn default() -> FileSystemWatcher
fn default() -> FileSystemWatcher
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileSystemWatcher
impl<'de> Deserialize<'de> for FileSystemWatcher
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FileSystemWatcher
impl PartialEq for FileSystemWatcher
Source§impl Serialize for FileSystemWatcher
impl Serialize for FileSystemWatcher
impl StructuralPartialEq for FileSystemWatcher
Auto Trait Implementations§
impl Freeze for FileSystemWatcher
impl RefUnwindSafe for FileSystemWatcher
impl Send for FileSystemWatcher
impl Sync for FileSystemWatcher
impl Unpin for FileSystemWatcher
impl UnwindSafe for FileSystemWatcher
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