pub trait IpAddrLike {
// Required method
fn as_ip_addr(&self) -> IpAddr;
}Expand description
AsIpAddr can be implemented to make an “IP-address-like” type compatible
with BlockedNetworks.
Required Methods§
fn as_ip_addr(&self) -> IpAddr
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".