Struct resolv::Response [] [src]

pub struct Response {
    // some fields omitted
}

Methods

impl Response
[src]

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.