Enum mun_vfs::MonitorEntry
source · pub enum MonitorEntry {
Files(Vec<AbsPathBuf>),
Directories(MonitorDirectories),
}
Expand description
Describes something to be monitored by a Monitor
.
Variants§
Files(Vec<AbsPathBuf>)
A set of files
Directories(MonitorDirectories)
A dynamic set of files and directories
Implementations§
source§impl MonitorEntry
impl MonitorEntry
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 entry.
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 MonitorEntry
impl Clone for MonitorEntry
source§fn clone(&self) -> MonitorEntry
fn clone(&self) -> MonitorEntry
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