Skip to main content

get_needed_components

Function get_needed_components 

Source
pub fn get_needed_components(
    protocol: &WebUiProtocol,
    entry_id: &str,
    inventory_hex: &str,
    component_index: &HashMap<String, u32>,
) -> Result<(Vec<String>, String), HandlerError>
Expand description

Walk the protocol fragment graph from entry_id and return the names of all components the route needs that are NOT in the client’s inventory.

Returns (needed_names, updated_inventory_hex).