Enum parse_hosts::DataParseError [] [src]

pub enum DataParseError {
    NoInternalSpace,
    HostWasIp(Ipv4Addr),
    BadHost(charString),
    BadIp(AddrParseErrorString),
}

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DataParseError
[src]

[src]

Formats the value using the given formatter.

impl Eq for DataParseError
[src]

impl PartialEq for DataParseError
[src]

[src]

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

[src]

This method tests for !=.

impl Error for DataParseError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Display for DataParseError
[src]

[src]

Formats the value using the given formatter. Read more