pub trait IpExt: Ip + Unpin {
type SockAddr: Into<SockAddr> + TryFromSockAddr + Clone + Copy + Unpin + PartialEq + Debug + Display + Eq + Hash;
const DOMAIN: Domain;
const PROTOCOL: Protocol;
const ECHO_REQUEST_TYPE: u8;
const ECHO_REPLY_TYPE: u8;
}
Expand description
Trait for IP protocol versions.
Required Associated Types§
Required Associated Constants§
sourceconst ECHO_REQUEST_TYPE: u8
const ECHO_REQUEST_TYPE: u8
ICMP echo request type.
sourceconst ECHO_REPLY_TYPE: u8
const ECHO_REPLY_TYPE: u8
ICMP echo reply type.
Object Safety§
This trait is not object safe.