Struct resolv::Resolver

source ·
pub struct Resolver { /* private fields */ }

Implementations

Set or unset an option

Lookup the record. Applies the search algorithm to the domain name given (if not fully qualified, it completes it using rules specified in resolv.conf search entries). In addition, this also searches your hosts file. Applies recursion if available and not turned off (it is on by default).

This is the highest level resolver routine, and is the one called by gethostbyname.

Lookup the record. Does not apply the search algorithm, so dname must be a complete domain name, and only DNS will be consulted (not your hosts file). Applies recursion if available and not turned off (it is on by default).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.