pub trait SourceIntegrityService: Send + Sync {
// Required methods
fn source_snapshots(&self) -> &[SourceSnapshot];
fn issues(
&self,
source: &SourceId,
) -> Result<Vec<IntegrityIssue>, IntegrityError>;
}Expand description
Adapter seam listing a source’s integrity issues.
Required Methods§
Sourcefn source_snapshots(&self) -> &[SourceSnapshot]
fn source_snapshots(&self) -> &[SourceSnapshot]
Exact source snapshots the scan covers.
Sourcefn issues(
&self,
source: &SourceId,
) -> Result<Vec<IntegrityIssue>, IntegrityError>
fn issues( &self, source: &SourceId, ) -> Result<Vec<IntegrityIssue>, IntegrityError>
Every issue in one covered source, in a deterministic order.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".