pub struct WatchSnapshot { /* private fields */ }Expand description
Recursive file tree snapshot capturing stamps for all watched source files.
Implementations§
Source§impl WatchSnapshot
Recursive directory scanning and deterministic diffing for WatchSnapshot.
impl WatchSnapshot
Recursive directory scanning and deterministic diffing for WatchSnapshot.
Sourcepub fn scan_excluding(
root: &Path,
allowed_exts: &[&str],
exclude_dir: Option<&Path>,
) -> Result<Self>
pub fn scan_excluding( root: &Path, allowed_exts: &[&str], exclude_dir: Option<&Path>, ) -> Result<Self>
Scans root recursively while excluding exclude_dir so generated outputs never self-trigger rebuilds.
§Arguments
&Path- Root project or documentation directory.&[&str]- Allowed lowercase file extensions.Option<&Path>- Optional output directory excluded from watching.
§Returns
io::Result<Self>- Collected directory snapshot or I/O error.
Sourcepub fn diff(&self, next: &Self) -> FileChangeSet
pub fn diff(&self, next: &Self) -> FileChangeSet
Source§impl WatchSnapshot
impl WatchSnapshot
pub fn get_entries(&self) -> &BTreeMap<PathBuf, FileStamp>
Trait Implementations§
Source§impl Clone for WatchSnapshot
impl Clone for WatchSnapshot
Source§impl Debug for WatchSnapshot
impl Debug for WatchSnapshot
Source§impl Default for WatchSnapshot
impl Default for WatchSnapshot
impl Eq for WatchSnapshot
Source§impl PartialEq for WatchSnapshot
impl PartialEq for WatchSnapshot
impl StructuralPartialEq for WatchSnapshot
Auto Trait Implementations§
impl Forget for WatchSnapshot
impl Freeze for WatchSnapshot
impl Move for WatchSnapshot
impl RefUnwindSafe for WatchSnapshot
impl Send for WatchSnapshot
impl Sync for WatchSnapshot
impl Unpin for WatchSnapshot
impl UnsafeUnpin for WatchSnapshot
impl UnwindSafe for WatchSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.