Enum tokio_zmq::error::Error [] [src]

pub enum Error {
    Zmq(ZmqError),
    Io(IoError),
}

Defines the error type for Tokio ZMQ.

Errors here can come from two places, IO, and ZeroMQ. Most errors encountered in this application are ZeroMQ errors, so Error::Zmq(_) is common, although we also need to catch IO errors from Tokio's PollEvented creation and TokioFileUnix's File creation.

Variants

Stores ZeroMQ Errors

Stores PollEvented and File creation errors

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl From<ZmqError> for Error
[src]

[src]

Performs the conversion.

impl From<IoError> for Error
[src]

[src]

Performs the conversion.