pub trait Scanner: Send + Sync {
// Required methods
fn scan(&self, config: &ScanConfig) -> Result<ScanResult>;
fn progress(&self) -> Arc<ScanProgress>;
// Provided method
fn cancel(&self) { ... }
}Expand description
Trait for implementing scanners
Required Methods§
Sourcefn scan(&self, config: &ScanConfig) -> Result<ScanResult>
fn scan(&self, config: &ScanConfig) -> Result<ScanResult>
Run the scan with the given configuration
Sourcefn progress(&self) -> Arc<ScanProgress>
fn progress(&self) -> Arc<ScanProgress>
Get the progress tracker