Skip to main content

admit

Function admit 

Source
pub fn admit(
    artifact: &Artifact,
    payload: &TargetPayload,
    target: MaterializerTarget<'_>,
) -> Result<Vec<AdmittedModule>, BackendError>
Expand description

Admit a target payload against the artifact it claims to implement.

Every check here is a property of the neutral artifact and the payload envelope, so it holds identically for every backend. The returned modules are paired with their decoded Program and dispatch config, identity already verified; the caller decodes image.bytes in its own dialect.

ยงErrors

Returns BackendError::UnsupportedFeature when the payload format is not the one the materializer was acquired for, and BackendError::InvalidProgram when the payload is not authenticated for this artifact, its profile disagrees, or its module and entry counts do not match the compiler-selected fusion plan.