Skip to main content

validate

Function validate 

Source
pub fn validate(filter: &str) -> Result<(), HeaderError>
Expand description

Checks filter against the cap and the grammar.

The empty filter is legal and matches every topic. One pass, no allocation. The 256 B cap is the one the decoder enforces, checked here too so a sender refuses a filter every conformant peer would close the connection over.