Enum resolv_conf::ParseError []

pub enum ParseError {
    InvalidUtf8(usizeUtf8Error),
    InvalidValue(usize),
    InvalidOptionValue(usize),
    InvalidOption(usize),
    InvalidDirective(usize),
    InvalidIp(usizeAddrParseError),
    ExtraData(usize),
}

Error while parsing resolv.conf file

Variants

Error that may be returned when the string to parse contains invalid UTF-8 sequences

Error returned a value for a given directive is invalid. This can also happen when the value is missing, if the directive requires a value.

Error returned when a value for a given option is invalid. This can also happen when the value is missing, if the option requires a value.

Error returned when a invalid option is found.

Error returned when a invalid directive is found.

Error returned when a value cannot be parsed an an IP address.

Error returned when there is extra data at the end of a line.

Trait Implementations

impl Debug for ParseError
[src]

[src]

Formats the value using the given formatter.

impl Display for ParseError

Formats the value using the given formatter. Read more

impl Error for ParseError

A short description of the error. Read more

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