Struct trust_dns_resolver::Hosts[][src]

pub struct Hosts { /* fields omitted */ }

Configuration for the local /etc/hosts

Methods

impl Hosts
[src]

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

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

Insert a new Lookup for the associated Name and RecordType

Trait Implementations

impl Debug for Hosts
[src]

Formats the value using the given formatter. Read more

impl Default for Hosts
[src]

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

Auto Trait Implementations

impl Send for Hosts

impl Sync for Hosts