fn code(&self) -> u8 {
        match self {
            &IcmpPacketType::Echo      => ICMP_TYPE_ECHO,
            &IcmpPacketType::EchoReply => ICMP_TYPE_ECHO_REPLY,
            &IcmpPacketType::Unknown => 
                panic!("no etype code for unknown packet type")
        }
    }
/// Get ICMP packet type code.
Get ICMP packet type code.
Get ICMP packet type code .
fn code(&self) -> u8 {
        match self {
            &IcmpPacketType::Echo      => ICMP_TYPE_ECHO,
            &IcmpPacketType::EchoReply => ICMP_TYPE_ECHO_REPLY,
            &IcmpPacketType::Unknown => 
                panic!("no etype code for unknown packet type")
        }
    }
fn code ( & self ) -> u8 { match self { & IcmpPacketType :: Echo => ICMP_TYPE_ECHO , & IcmpPacketType :: EchoReply => ICMP_TYPE_ECHO_REPLY , & IcmpPacketType :: Unknown => panic ! ( " " ) } }
Get ICMP packet type code.
Get ICMP packet type code .
&self
&self