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 WatchSnapshotwhere
*const LeafNode<PathBuf, FileStamp> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(PathBuf, FileStamp)>>: UnsafeUnpin,
impl UnwindSafe for WatchSnapshot
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more