pub struct Scanner { /* private fields */ }Expand description
High-performance file system scanner with parallel processing
Implementations§
Source§impl Scanner
impl Scanner
Sourcepub async fn scan<P>(
&self,
path: P,
options: ScanOptions,
) -> Result<Vec<FileInfo>, ScribeError>
pub async fn scan<P>( &self, path: P, options: ScanOptions, ) -> Result<Vec<FileInfo>, ScribeError>
Scan a directory with the given options
Sourcepub fn files_processed(&self) -> usize
pub fn files_processed(&self) -> usize
Get current processing statistics
Sourcepub fn directories_traversed(&self) -> usize
pub fn directories_traversed(&self) -> usize
Get number of directories traversed
Sourcepub fn binary_files_skipped(&self) -> usize
pub fn binary_files_skipped(&self) -> usize
Get number of binary files skipped
Sourcepub fn errors_encountered(&self) -> usize
pub fn errors_encountered(&self) -> usize
Get number of errors encountered
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scanner
impl !RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl !UnwindSafe for Scanner
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> 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