pub trait IntoIpAddr {
// Required method
fn into_ip_addr(self) -> Result<IpAddr, XdbError>;
}Expand description
Types that can be converted to an IpAddr for IP lookup.
Implemented for common IP representations so crate::search_ip accepts
&str, String, u32, u128, IpAddr, Ipv4Addr, and Ipv6Addr.