[][src]Trait public_ip::Resolution

pub trait Resolution: Send + Any {
    fn address(&self) -> IpAddr;
}

The successful product of a resolver

As well as containing the IP address resolved, resolvers will contain the specific parameters used in the resolution in their concrete type. Using Any allows you to downcast them to the specific type and retrive them.

Required methods

fn address(&self) -> IpAddr

The IP address resolved

Loading content...

Implementations on Foreign Types

impl Resolution for Box<dyn Resolution>[src]

Loading content...

Implementors

impl Resolution for DnsResolution[src]

impl Resolution for HttpResolution[src]

Loading content...