Enum parse_hosts::DataParseError [] [src]

pub enum DataParseError {
    NoInternalSpace,
    HostWasIp(Ipv4Addr),
    BadHost(char),
    BadIp(AddrParseError),
}

Error parsing a line in /etc/hosts.

Variants

The line didn't have a space between the host and IP.

This includes any line that doesn't have an internal space; the host and IP are not actually checked.

The given host was actually an IPv4 address.

The given host had an invalid character.

The IP failed to parse.

Trait Implementations

impl Clone for DataParseError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DataParseError
[src]

Formats the value using the given formatter.

impl Eq for DataParseError
[src]

impl PartialEq for DataParseError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.