pub fn try_from_inbound_packet(packet: &[u8]) -> Result<Ipv6PacketMatcherRule, Error> {
        let (proto, src_addr, dst_addr, src_port, dst_port) = Self::decode_packet(packet)?;

        Ok(Ipv6PacketMatcherRule {
            proto: Some(proto),
            local_port: dst_port,
            local_address: Subnet::from(Into::<std::net::Ipv6Addr>::into(dst_addr)),
            remote_port: src_port,
            remote_address: Subnet::from(Into::<std::net::Ipv6Addr>::into(src_addr)),
        })
    }
/// Make a new matching rule that matches packets that are
/// related to this inbound packet.
Make a new matching rule that matches packets that are
related to this inbound packet.
Make a new matching rule that matches packets that are related to this inbound packet .
pub fn try_from_inbound_packet(packet: &[u8]) -> Result<Ipv6PacketMatcherRule, Error> {
        let (proto, src_addr, dst_addr, src_port, dst_port) = Self::decode_packet(packet)?;
        Ok(Ipv6PacketMatcherRule {
            proto: Some(proto),
            local_port: dst_port,
            local_address: Subnet::from(Into::<std::net::Ipv6Addr>::into(dst_addr)),
            remote_port: src_port,
            remote_address: Subnet::from(Into::<std::net::Ipv6Addr>::into(src_addr)),
        })
    }
pub fn try_from_inbound_packet ( packet : & [ u8 ] ) -> Result < Ipv6PacketMatcherRule , Error > { let ( proto , src_addr , dst_addr , src_port , dst_port ) = Self :: decode_packet ( packet ) ? ; Ok ( Ipv6PacketMatcherRule { proto : Some ( proto ) , local_port : dst_port , local_address : Subnet :: from ( Into :: < std :: net :: Ipv6Addr > :: into ( dst_addr ) ) , remote_port : src_port , remote_address : Subnet :: from ( Into :: < std :: net :: Ipv6Addr > :: into ( src_addr ) ) , } ) }
Make a new matching rule that matches packets that are
related to this inbound packet.
Make a new matching rule that matches packets that are related to this inbound packet .
packet
&[u8]
packet
&[u8]