pub struct Hosts { /* fields omitted */ }
Configuration for the local /etc/hosts
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
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)