IpAddrLike

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§

Implementations on Foreign Types§

Source§

impl IpAddrLike for IpAddr

Source§

impl IpAddrLike for SocketAddr

Implementors§