pub fn match_inbound_packet(&self, packet: &[u8]) -> bool {
        let (proto, remote_addr, local_addr, remote_port, local_port) =
            if let Ok(x) = Self::decode_packet(packet) {
                x
            } else {
                return false;
            };

        self.match_parts(proto, local_addr, remote_addr, local_port, remote_port)
    }
/// Determines if an inbound packet matches this rule.
Determines if an inbound packet matches this rule.
Determines if an inbound packet matches this rule .
pub fn match_inbound_packet(&self, packet: &[u8]) -> bool {
        let (proto, remote_addr, local_addr, remote_port, local_port) =
            if let Ok(x) = Self::decode_packet(packet) {
                x
            } else {
                return false;
            };
        self.match_parts(proto, local_addr, remote_addr, local_port, remote_port)
    }
pub fn match_inbound_packet ( & self , packet : & [ u8 ] ) -> bool { let ( proto , remote_addr , local_addr , remote_port , local_port ) = if let Ok ( x ) = Self :: decode_packet ( packet ) { x } else { return false ; } ; self . match_parts ( proto , local_addr , remote_addr , local_port , remote_port ) }
Determines if an inbound packet matches this rule.
Determines if an inbound packet matches this rule .
&self
packet
&[u8]
&self
packet
&[u8]