/// If there is a matching rule in the set for this inbound packet, remove it.
If there is a matching rule in the set for this inbound packet, remove it.
If there is a matching rule in the set for this inbound packet remove it .
pub fn clear_with_inbound_packet(&mut self, packet: &[u8]) -> bool {
        let mut did_match = false;
        self.0.retain(|rule| {
            if rule.match_inbound_packet(packet) {
                did_match = true;
                false
            } else {
                true
            }
        });
        did_match
    }
pub fn clear_with_inbound_packet ( & mut self , packet : & [ u8 ] ) -> bool { let mut did_match = false ; self . 0 . retain ( | rule | { if rule . match_inbound_packet ( packet ) { did_match = true ; false } else { true } } ) ; did_match }
If there is a matching rule in the set for this inbound packet, remove it.
If there is a matching rule in the set for this inbound packet remove it .
&mut self
packet
&[u8]