pub struct ContentScanner { /* private fields */ }Expand description
Main content scanner
Implementations§
Source§impl ContentScanner
impl ContentScanner
Sourcepub fn new(config: ScanConfig) -> Result<Self>
pub fn new(config: ScanConfig) -> Result<Self>
Create a new content scanner
Sourcepub async fn scan_paths(&self, paths: &[String]) -> Result<ClassSet>
pub async fn scan_paths(&self, paths: &[String]) -> Result<ClassSet>
Scan for classes in specified paths
Sourcepub async fn scan_file(&self, file_path: &Path) -> Result<Vec<ExtractedClass>>
pub async fn scan_file(&self, file_path: &Path) -> Result<Vec<ExtractedClass>>
Scan for classes in a single file
Sourcepub async fn get_cache_stats(&self) -> CacheStats
pub async fn get_cache_stats(&self) -> CacheStats
Get cache statistics
Sourcepub async fn clear_cache(&self)
pub async fn clear_cache(&self)
Clear cache
Sourcepub fn get_config(&self) -> &ScanConfig
pub fn get_config(&self) -> &ScanConfig
Get scanner configuration
Sourcepub fn update_config(&mut self, config: ScanConfig) -> Result<()>
pub fn update_config(&mut self, config: ScanConfig) -> Result<()>
Update scanner configuration
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ContentScanner
impl !UnwindSafe for ContentScanner
impl Freeze for ContentScanner
impl Send for ContentScanner
impl Sync for ContentScanner
impl Unpin for ContentScanner
impl UnsafeUnpin for ContentScanner
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