fn match_parts(
        &self,
        proto: Ipv6Proto,
        local_addr: Ipv6Addr,
        remote_addr: Ipv6Addr,
        local_port: Option<NonZeroU16>,
        remote_port: Option<NonZeroU16>,
    ) -> bool {
        self.proto.unwrap_or(proto) == proto
            && self.local_address.contains(&local_addr.into())
            && self.remote_address.contains(&remote_addr.into())
            && self.local_port.or(local_port) == local_port
            && self.remote_port.or(remote_port) == remote_port
    }
/// Helper function for matching various parts of an IPv6 packet
/// to the values associated with the rule.
Helper function for matching various parts of an IPv6 packet
to the values associated with the rule.
Helper function for matching various parts of an IPv6 packet to the values associated with the rule .
fn match_parts(
        &self,
        proto: Ipv6Proto,
        local_addr: Ipv6Addr,
        remote_addr: Ipv6Addr,
        local_port: Option<NonZeroU16>,
        remote_port: Option<NonZeroU16>,
    ) -> bool {
        self.proto.unwrap_or(proto) == proto
            && self.local_address.contains(&local_addr.into())
            && self.remote_address.contains(&remote_addr.into())
            && self.local_port.or(local_port) == local_port
            && self.remote_port.or(remote_port) == remote_port
    }
fn match_parts ( & self , proto : Ipv6Proto , local_addr : Ipv6Addr , remote_addr : Ipv6Addr , local_port : Option < NonZeroU16 > , remote_port : Option < NonZeroU16 > , ) -> bool { self . proto . unwrap_or ( proto ) == proto && self . local_address . contains ( & local_addr . into ( ) ) && self . remote_address . contains ( & remote_addr . into ( ) ) && self . local_port . or ( local_port ) == local_port && self . remote_port . or ( remote_port ) == remote_port }
Helper function for matching various parts of an IPv6 packet
to the values associated with the rule.
Helper function for matching various parts of an IPv6 packet to the values associated with the rule .
&self
proto
Ipv6Proto
local_addr
Ipv6Addr
remote_addr
Ipv6Addr
local_port
Option<NonZeroU16>
remote_port
Option<NonZeroU16>
&self
proto
Ipv6Proto
local_addr
Ipv6Addr
remote_addr
Ipv6Addr
local_port
Option<NonZeroU16>
remote_port
Option<NonZeroU16>