pub struct Hosts { /* fields omitted */ }
Configuration for the local hosts file
Creates a new configuration from the system hosts file,
only works for Windows and Unix-like OSes,
will return empty configuration on others
lookup_static_host looks up the addresses
for the given host from the system hosts file.
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
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
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static