Enum nitox::NatsError[][src]

pub enum NatsError {
    CommandBuildError(String),
    IOError(Error),
    ServerDisconnected(Option<Error>),
    ProtocolError(CommandError),
    UTF8Error(FromUtf8Error),
    TlsError(Error),
    TlsHostMissingError,
    UrlParseError(ParseError),
    AddrParseError(AddrParseError),
    UriDNSResolveError(Option<Error>),
    CannotReconnectToServer,
    InnerBrokenChain,
    GenericError(String),
}

Error enum for all cases of internal/external errors occuring during client execution

Variants

Building a command has failed because of invalid syntax or incorrect arguments

Generic IO error from stdlib

Occurs when the client is not yet connected or got disconnected from the server. Contains Some<io::Error> when it's actually a disconnection or contains None when we are not connected at all

Protocol error

Occurs if we try to parse a string that is supposed to be valid UTF8 and...is actually not

Error on TLS handling

Occurs when the host is not provided, removing the ability for TLS to function correctly for server identify verification

Cannot parse an URL

Cannot parse an IP

Occurs when we cannot resolve the URI given using the local host's DNS resolving mechanisms Will contain Some(io::Error) when the resolving has been tried with an error, and None when resolving succeeded but gave no results

Cannot reconnect to server after retrying once

Something went wrong in one of the Reciever/Sender pairs

Generic string error

Trait Implementations

impl Debug for NatsError
[src]

Formats the value using the given formatter. Read more

impl From<Error> for NatsError
[src]

Performs the conversion.

impl<T> From<SendError<T>> for NatsError
[src]

Performs the conversion.

impl From<CommandError> for NatsError
[src]

Performs the conversion.

impl From<FromUtf8Error> for NatsError
[src]

Performs the conversion.

impl From<Error> for NatsError
[src]

Performs the conversion.

impl From<String> for NatsError
[src]

Performs the conversion.

impl From<ParseError> for NatsError
[src]

Performs the conversion.

impl From<AddrParseError> for NatsError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for NatsError

impl Sync for NatsError