Struct trust_dns_resolver::Hosts [] [src]

pub struct Hosts {
    pub by_name: HashMap<Name, Lookup>,
}

Configuration for the local /etc/hosts

Fields

Name -> RDatas map

Methods

impl Hosts
[src]

[src]

Creates a new configuration from /etc/hosts, only works for unix like OSes, others will return empty configuration

[src]

lookup_static_host looks up the addresses for the given host from /etc/hosts.

Trait Implementations

impl Debug for Hosts
[src]

[src]

Formats the value using the given formatter.

impl Default for Hosts
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for Hosts
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more