Enum abstract_ns::Error []

pub enum Error {
    InvalidName(String, &'static str),
    TemporaryError(Box<StdError + Send + Sync>),
    NameNotFound,
    NoDefaultPort,
}

A generic name resolution error

It's designed to provide basic abstraction over error types and also provide as much information as possible by carrying original error

Variants

Couldn't parse a name before resolution

It's expected that this error is permanent and is a failure of validating user input or the name in the configuration is invalid, but it's possible that some resolver have very specific requirements for names, so you might want to change resolver too.

Temporary name resolution error

This means either name server returned this kind of error or we couldn't connect to a name server itself. It's safe to assume that you can retry name resolution in a moment

We have sucessfully done name resolution but there is no such name

The target resolver can only resolve host names and no default port is specified

Methods

impl Error
[src]

[src]

Wraps the error into std::io::Error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

A short description of the error. Read more

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

impl From<Void> for Error
[src]

[src]

Performs the conversion.