pub struct FileScanner { /* private fields */ }Expand description
High-level scanner facade providing convenient access to all scanning functionality
Implementations§
Source§impl FileScanner
impl FileScanner
Sourcepub fn new() -> FileScanner
pub fn new() -> FileScanner
Create a new file scanner with default configuration
Sourcepub fn with_git_integration(
self,
repo_path: &Path,
) -> Result<FileScanner, ScribeError>
pub fn with_git_integration( self, repo_path: &Path, ) -> Result<FileScanner, ScribeError>
Enable git integration for enhanced file discovery
Sourcepub async fn scan_comprehensive<P>(
&self,
path: P,
) -> Result<Vec<FileInfo>, ScribeError>
pub async fn scan_comprehensive<P>( &self, path: P, ) -> Result<Vec<FileInfo>, ScribeError>
Scan a directory with comprehensive analysis
Sourcepub async fn scan_fast<P>(&self, path: P) -> Result<Vec<FileInfo>, ScribeError>
pub async fn scan_fast<P>(&self, path: P) -> Result<Vec<FileInfo>, ScribeError>
Quick scan without full content analysis
Sourcepub fn get_stats(&self) -> ScannerStats
pub fn get_stats(&self) -> ScannerStats
Get detailed statistics about the scanning process
Trait Implementations§
Source§impl Default for FileScanner
impl Default for FileScanner
Source§fn default() -> FileScanner
fn default() -> FileScanner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FileScanner
impl !RefUnwindSafe for FileScanner
impl Send for FileScanner
impl Sync for FileScanner
impl Unpin for FileScanner
impl !UnwindSafe for FileScanner
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