Skip to main content

verify_unit_with

Function verify_unit_with 

Source
pub fn verify_unit_with(
    unit: &Unit,
    resolver: &dyn SourceResolver,
) -> Result<Verified, VerifyError>
Expand description

verify_unit, fetching the source through a resolver.

A thin wrapper on purpose: the decision stays in one function, and this adds only the fetch. The CLI uses this; the harness may use either.

ยงErrors

VerifyError::SourceUnavailable if the fetch fails, else whatever verify_unit returns.