Struct mun_vfs::MonitorDirectories
source · pub struct MonitorDirectories {
pub extensions: Vec<String>,
pub include: Vec<AbsPathBuf>,
pub exclude: Vec<AbsPathBuf>,
}
Expand description
Describes a set of files to monitor. A file is included if:
- it has included
extension
- it is under an
include
path - it is not under an
exclude
path
If many include/exclude paths match, the longest one wins.
Fields§
§extensions: Vec<String>
File extensions to monitor (e.g. “mun”)
include: Vec<AbsPathBuf>
The directories or files to monitor
exclude: Vec<AbsPathBuf>
Paths to ignore
Implementations§
source§impl MonitorDirectories
impl MonitorDirectories
sourcepub fn contains_file(&self, path: impl AsRef<AbsPath>) -> bool
pub fn contains_file(&self, path: impl AsRef<AbsPath>) -> bool
Returns true if, according to this instance, the file at the given path
is contained in
this set.
sourcepub fn contains_dir(&self, path: impl AsRef<AbsPath>) -> bool
pub fn contains_dir(&self, path: impl AsRef<AbsPath>) -> bool
Returns true if, according to this instance, the directory at the given path
is contained
in this set.
Trait Implementations§
source§impl Clone for MonitorDirectories
impl Clone for MonitorDirectories
source§fn clone(&self) -> MonitorDirectories
fn clone(&self) -> MonitorDirectories
Returns a copy 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 more