Skip to main content

check_all_consumed

Function check_all_consumed 

Source
pub fn check_all_consumed(
    configs: &PipelineConfigs,
    consumed_facets: &[(String, String)],
) -> Result<(), BindingMigrateError>
Expand description

Verify every medium/facet record in configs was consumed by a fold — consumed_facets is the union of every migrated binding’s (mem, facet-name) pairs. A facet no binding referenced, or a medium no consumed facet engages, is an orphan: removing the trees would drop its content silently, so the migration refuses instead (BindingMigrateError::OrphanRecords) and names each leftover.