Function armorlib::scan_modules::process [] [src]

pub fn process(
    scan_modules: Vec<Box<ScanModule>>,
    scan_object: &ScanObject
) -> ScanResult

Process the given Vec<Box<ScanModule>> on the given ScanObject and return a ScanResult. While concurrency is not yet available in ArmorLib, it will be implemented in this function, if anywhere. Be sure that the given ScanObject has the necessary metadata for the scan modules; no preprocessor checking is done here.

In nearly all cases, it is better to perform File.process(), Vec<u8>.process(), or even coordinator::process() than to use this function. The previous functions will make sure that everything is set up properly; using this function alone will require you to manage the preprocessors yourself.

Arguments

  • scan_modules: a Vec<Box<ScanModule>> of the scan modules to be run.
  • scan_object: a reference to a ScanObject with all necessary metadata present.