pub trait IcmpMessageType: TryFrom<u8> + Into<u8> + Copy {
    // Required method
    fn is_err(self) -> bool;
}
Expand description

The type of an ICMP message.

IcmpMessageType is implemented by Icmpv4MessageType and Icmpv6MessageType.

Required Methods§

source

fn is_err(self) -> bool

Is this an error message?

For ICMP, this is true for the Destination Unreachable, Redirect, Source Quench, Time Exceeded, and Parameter Problem message types. For ICMPv6, this is true for the Destination Unreachable, Packet Too Big, Time Exceeded, and Parameter Problem message types.

Object Safety§

This trait is not object safe.

Implementors§