pub struct JwalkScanner { /* private fields */ }Expand description
High-performance scanner using jwalk for parallel traversal.
Implementations§
Source§impl JwalkScanner
impl JwalkScanner
Sourcepub fn subscribe(&self) -> Receiver<ScanProgress>
pub fn subscribe(&self) -> Receiver<ScanProgress>
Subscribe to scan progress updates.
Sourcepub fn scan(
&self,
config: &ScanConfig,
token: CancellationToken,
) -> Result<FileTree, ScanError>
pub fn scan( &self, config: &ScanConfig, token: CancellationToken, ) -> Result<FileTree, ScanError>
Scan config.root into a tree.
Sizes cover the whole subtree even when max_depth limits which nodes
are retained. Hard links count once unless count_hard_links is set,
and directories include their own allocation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JwalkScanner
impl RefUnwindSafe for JwalkScanner
impl Send for JwalkScanner
impl Sync for JwalkScanner
impl Unpin for JwalkScanner
impl UnsafeUnpin for JwalkScanner
impl UnwindSafe for JwalkScanner
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> 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