Enum resolv_conf::ParseError
[−]
pub enum ParseError { InvalidUtf8(usize, Utf8Error), InvalidValue(usize), InvalidOptionValue(usize), InvalidOption(usize), InvalidDirective(usize), InvalidIp(usize, AddrParseError), ExtraData(usize), }
Error while parsing resolv.conf file
Variants
InvalidUtf8(usize, Utf8Error)
Error that may be returned when the string to parse contains invalid UTF-8 sequences
InvalidValue(usize)
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.
InvalidOptionValue(usize)
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.
InvalidOption(usize)
Error returned when a invalid option is found.
InvalidDirective(usize)
Error returned when a invalid directive is found.
InvalidIp(usize, AddrParseError)
Error returned when a value cannot be parsed an an IP address.
ExtraData(usize)
Error returned when there is extra data at the end of a line.
Trait Implementations
impl Debug for ParseError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more