pub struct ScanDiagnostics {
pub schema: &'static str,
pub worker_policy: WorkerPolicyDiagnostics,
pub backend: ScanBackendDiagnostics,
}Expand description
Opt-in, run-scoped evidence about a filesystem scan.
Obtain this through scan_with_diagnostics or
scan_into_index_with_diagnostics. Keeping it out of ScanReport preserves the
existing scan API and keeps ordinary callers off the measurement path entirely.
Fields§
§schema: &'static strVersion of this diagnostic contract.
worker_policy: WorkerPolicyDiagnosticsAutomatic worker-controller history and queue state.
backend: ScanBackendDiagnosticsDirectory-enumeration backends used by this run.
Implementations§
Source§impl ScanDiagnostics
impl ScanDiagnostics
Sourcepub fn to_json(&self) -> String
pub fn to_json(&self) -> String
Serialize this versioned diagnostic contract as compact JSON.
This deliberately lives beside the contract instead of in a benchmark binary: claim-grade installed-command measurements and the repository probe must emit byte-for-byte equivalent evidence without adding a serialization dependency to the core crate.
Trait Implementations§
Source§impl Clone for ScanDiagnostics
impl Clone for ScanDiagnostics
Source§impl Debug for ScanDiagnostics
impl Debug for ScanDiagnostics
impl Eq for ScanDiagnostics
Source§impl PartialEq for ScanDiagnostics
impl PartialEq for ScanDiagnostics
impl StructuralPartialEq for ScanDiagnostics
Auto Trait Implementations§
impl Freeze for ScanDiagnostics
impl RefUnwindSafe for ScanDiagnostics
impl Send for ScanDiagnostics
impl Sync for ScanDiagnostics
impl Unpin for ScanDiagnostics
impl UnsafeUnpin for ScanDiagnostics
impl UnwindSafe for ScanDiagnostics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more