Struct trust_dns_resolver::Hosts [] [src]

pub struct Hosts { /* fields omitted */ }

Configuration for the local /etc/hosts

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.

[src]

Insert a new Lookup for the associated Name and RecordType

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