Skip to main content

Substrate

Trait Substrate 

Source
pub trait Substrate {
    // Provided methods
    fn changed_files(&self) -> Option<&[String]> { ... }
    fn repo_root(&self) -> Option<&Path> { ... }
    fn metadata(&self) -> Option<&Value> { ... }
}
Expand description

Optional shared substrate from the Cockpit runtime.

Provides pre-computed inventory to avoid redundant scans. No sensor may require a Substrate to function.

Provided Methods§

Source

fn changed_files(&self) -> Option<&[String]>

Pre-computed list of changed file paths (forward-slash normalized).

Source

fn repo_root(&self) -> Option<&Path>

Repository root path.

Source

fn metadata(&self) -> Option<&Value>

Arbitrary metadata from the substrate provider.

Implementors§