Skip to main content

scan_run_failure_code

Function scan_run_failure_code 

Source
pub fn scan_run_failure_code(error: &ScanRunError) -> EngineFailureCode
Expand description

What: The code of a failed scan pass. &ScanRunError borrows the failure read-only. Why: A pass fails in the candidate layer or in the adapter, and each already has its code; the pass reports the code of the failure it wraps.

In TS you’d write (pseudocode):

function scanRunFailureCode(error: ScanRunError): EngineFailureCode;