pub struct Options {
pub recursive: bool,
pub exclude: Vec<String>,
}Expand description
What a watch covers.
Fields§
§recursive: boolA directory’s whole tree (the default), or its own entries only.
exclude: Vec<String>Globs relative to the watched path whose changes never arrive:
* within a component, ? one character, ** any number of
components; a glob without / matches a component at any depth
(target, node_modules, *.log), one with / is anchored at
the watched path (.git/objects), and a leading / anchors a
single name there, as in .gitignore (/target is the watched
path’s own target only). Excluding a directory excludes
everything in it. At most 64.
Implementations§
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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