Enum ns_env_config::Error [] [src]

pub enum Error {
    InvalidName(String, &'static str),
    TemporaryError(Box<Error + 'static + 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 Error for Error
[src]

[src]

[src]

impl From<Void> for Error
[src]

[src]

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]