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 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.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".