Skip to main content

SourceIntegrityService

Trait SourceIntegrityService 

Source
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§

Source

fn source_snapshots(&self) -> &[SourceSnapshot]

Exact source snapshots the scan covers.

Source

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".

Implementors§