should_continue_parsing

Function should_continue_parsing 

Source
pub fn should_continue_parsing(
    parsed_so_far: &[&str],
    required: &HashSet<String>,
) -> bool
Expand description

Check if parsing should continue given the current parse results and required set.

Returns true if there are required protocols that haven’t been parsed yet, meaning parsing should continue.

§Arguments

  • parsed_so_far - Names of protocols already parsed from the current packet
  • required - Set of protocols needed for the query

§Returns

true if parsing should continue, false if all required protocols have been found.