Crate parse_hosts [] [src]

Structs

DataLine

Data from a line in /etc/hosts.

DataLines

Iterator over the lines in /etc/hosts with data.

Hosts

Iterator over the hosts on a line.

HostsFile

Representation of /etc/hosts.

IntoPairs

Iterator over the host/IP pairs on a line. (owned version)

Line

Formatted line in /etc/hosts.

LinePairs

Iterator over the host/IP pairs on a line.

Lines

Iterator over the lines in /etc/hosts.

Pairs

Iterator over the host/IP pairs in /etc/hosts.

Enums

DataParseError

Error parsing a line in /etc/hosts.

LineReadError

Error found when reading a line in /etc/hosts.

Functions

minify_lines

Minifies a list of data lines.`

Type Definitions

ActualHostsFile

Shorthand for HostsFile<BufReader<File>>.

BufHostsFile

Shorthand for HostsFile<BufReader<R>>.