pub enum Error {
Zmq(ZmqError),
Io(IoError),
Timer(TimerError),
Sink,
Stream,
Reused,
}
Expand description
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§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting