Struct trust_dns_resolver::Hosts [−][src]
pub struct Hosts { /* fields omitted */ }
Configuration for the local /etc/hosts
Methods
impl Hosts
[src]
impl Hosts
pub fn new() -> Hosts
[src]
pub fn new() -> Hosts
Creates a new configuration from /etc/hosts, only works for unix like OSes, others will return empty configuration
pub fn lookup_static_host(&self, query: &Query) -> Option<Lookup>
[src]
pub fn lookup_static_host(&self, query: &Query) -> Option<Lookup>
lookup_static_host looks up the addresses for the given host from /etc/hosts.
pub fn insert(&mut self, name: Name, record_type: RecordType, lookup: Lookup)
[src]
pub fn insert(&mut self, name: Name, record_type: RecordType, lookup: Lookup)
Insert a new Lookup for the associated Name
and RecordType
Trait Implementations
impl Debug for Hosts
[src]
impl Debug for Hosts
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Hosts
[src]
impl Default for Hosts