Skip to main content

Scanner

Trait Scanner 

Source
pub trait Scanner: Send + Sync {
    // Required method
    fn scan(&self, path: &Path, timeout: Duration) -> ScanOutcome;
}
Expand description

External-scanner abstraction. Implementations spawn the operator’s configured command, wait up to timeout, and return the outcome. Trait-object shape keeps the read path testable without spawning real processes — the test seam is the Mock impl in #[cfg(test)].

Required Methods§

Source

fn scan(&self, path: &Path, timeout: Duration) -> ScanOutcome

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§