Enum tokio_zmq::Error[][src]

pub enum Error {
    Zmq(ZmqError),
    Io(IoError),
    Timer(TimerError),
    Sink,
    Stream,
    Reused,
}

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

Stores Tokio Timer errors

If Sink socket is not done handling current request

If Stream socket is not done handling current request

If a future is used after it is consumed

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<ZmqError> for Error
[src]

Performs the conversion.

impl From<IoError> for Error
[src]

Performs the conversion.

impl From<TimerError> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

This method is soft-deprecated. Read more

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error