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
Zmq(ZmqError)
Stores ZeroMQ Errors
Io(IoError)
Stores PollEvented and File creation errors
Timer(TimerError)
Stores Tokio Timer errors
Sink
If Sink socket is not done handling current request
Stream
If Stream socket is not done handling current request
Reused
If a future is used after it is consumed
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<ZmqError> for Error
[src]
impl From<IoError> for Error
[src]
impl From<TimerError> for Error
[src]
fn from(e: TimerError) -> Self
[src]
Performs the conversion.
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more