Enum resolv_conf::ParseError
source · pub enum ParseError {
InvalidUtf8(usize, Utf8Error),
InvalidValue(usize),
InvalidOptionValue(usize),
InvalidOption(usize),
InvalidDirective(usize),
InvalidIp(usize, AddrParseError),
ExtraData(usize),
}
Expand description
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§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more