pub(super) enum WorkerKind {
Mft,
Walk {
roots: Vec<String>,
excludes: Vec<String>,
},
}Expand description
What drives a volume slot: the privileged $MFT scan + USN journal, or the
non-elevated folder-walk + ReadDirectoryChangesW watcher (scope mode,
ADR-0024). The worker reuses one loop for both; this picks the initial-scan
source and the change source at the two branch points.
Variants§
Mft
mft::scan_volume(label) + WinJournalSource — needs elevation.
Walk
scan::walk::walk_scan(roots, excludes) + WatcherJournalSource — no
elevation. excludes prunes matching subtrees at walk time (ADR-0025).
Auto Trait Implementations§
impl Freeze for WorkerKind
impl RefUnwindSafe for WorkerKind
impl Send for WorkerKind
impl Sync for WorkerKind
impl Unpin for WorkerKind
impl UnsafeUnpin for WorkerKind
impl UnwindSafe for WorkerKind
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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