Struct parse_hosts::HostsFile [] [src]

pub struct HostsFile<R: BufRead> { /* fields omitted */ }

Representation of /etc/hosts.

Methods

impl HostsFile<BufReader<File>>
[src]

[src]

Loads the data from /etc/hosts.

impl<R: Read> HostsFile<BufReader<R>>
[src]

[src]

Loads the data from /etc/hosts from a generic reader wrapped in a BufReader.

impl<R: BufRead> HostsFile<R>
[src]

[src]

Loads the data from /etc/hosts from a generic reader.

[src]

Iterates over all lines in the file.

[src]

Iterates over the lines in the file with data.

[src]

Iterates over the IP/host pairs in the file.