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]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ZmqError> for Error
[src]
impl From<ZmqError> for Error
impl From<IoError> for Error
[src]
impl From<IoError> for Error
impl From<TimerError> for Error
[src]
impl From<TimerError> for Error
fn from(e: TimerError) -> Self
[src]
fn from(e: TimerError) -> Self
Performs the conversion.
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error