Trait ResolveAddr

Source
pub trait ResolveAddr {
    type Error: Debug;

    // Required method
    fn resolve_addr(&mut self, addr: in_addr) -> Result<String, Self::Error>;
}
Expand description

Trait for resolving IP addresses

A type implementing this trait can resolve an IP address to a hostname.

Required Associated Types§

Required Methods§

Source

fn resolve_addr(&mut self, addr: in_addr) -> Result<String, Self::Error>

Resolve an IP address to a hostname

§Errors

An error will be returned if the IP address could not be resolved.

Implementors§