pub fn scan_run_failure_code(error: &ScanRunError) -> EngineFailureCodeExpand 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;