Skip to main content

Scanner

Trait Scanner 

Source
pub trait Scanner {
    // Required methods
    fn scan_file(&self, path: &Path) -> Result<Vec<Finding>>;
    fn scan_directory(&self, dir: &Path) -> Result<Vec<Finding>>;

    // Provided method
    fn scan_path(&self, path: &Path) -> Result<Vec<Finding>> { ... }
}
Expand description

Core trait for all security scanners.

Required Methods§

Source

fn scan_file(&self, path: &Path) -> Result<Vec<Finding>>

Source

fn scan_directory(&self, dir: &Path) -> Result<Vec<Finding>>

Provided Methods§

Source

fn scan_path(&self, path: &Path) -> Result<Vec<Finding>>

Implementors§