Struct resolv::Response

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

Implementations

This is for internal use.

Gets the ID field of the Name Server response

Gets flags (and opcodes) in the header of the Name Server response

Returns a count of how many records exist in the given section

Gets a record from a section. Returns an error if index is out of bounds (use get_section_count()). Also returns an error (at run-time) if assigned into a Record of the wrong type.

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.