Struct resolve::hosts::HostTable [] [src]

pub struct HostTable {
    pub hosts: Vec<Host>,
}

Represents a host table, consisting of addresses mapped to names.

Fields

Contained hosts

Methods

impl HostTable
[src]

Returns the address for the first host matching the given name.

If no match is found, None is returned.

Returns the canonical name for the first host matching the given address.

If no match is found, None is returned.

Returns the first host matching the given address.

If no match is found, None is returned.

Returns the first host matching the given address.

If no match is found, None is returned.

Trait Implementations

impl Clone for HostTable
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HostTable
[src]

Formats the value using the given formatter.