All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
CHANGELOG.md
, is this file.- Example for
README.md
echoing a single message with futures. - Example for
README.md
echoing a multipart message with futures. - Example for
README.md
echoing a single message with tokio transports. - Doctest in
src/lib.rs
echoing a single message with futures. - Doctest in
src/lib.rs
echoing a multipart message with futures. - Doctest in
src/lib.rs
echoing a single message with tokio transports. - Re-export
SocketType
,Message
,SNDMORE
,Error
,SocketType::*
, from therust-zmq
crate, for convenience. This should makeextern crate zmq_tokio
more attractive thanextern crate zmq
, when dealing with async communications. zmq_tokio::Context
mirrors the traits fromzmq_mio::Context
.zmq_tokio::Context::get_inner
method gets a clone of the underlyingzmq_mio::Context
zmq_tokio::Socket
implementsRead
,Write
fromstd::io
.zmq_tokio::Socket
implementsAsyncRead
andAsyncWrite
fromtokio_io::io
.zmq_tokio::Socket
mirrors the traits fromzmq_mio::Socket
.zmq_tokio::Socket
methodssend
,send_multipart
,recv
,recv_multipart
. These methods return futures, and will not work outside of a tokio task. This expands our coverage of thezmq::Socket
API.zmq_tokio::future::SendMessage
is a future type returned byzmq_tokio::Socket::send
.zmq_tokio::future::SendMultipartMessage
is a future type returned byzmq_tokio::Socket::send_multipart
.zmq_tokio::future::ReceiveMessage
is a future type returned byzmq_tokio::Socket::recv
.zmq_tokio::future::ReceiveMultipartMessage
is a future type returned byzmq_tokio::Socket::recv_multipart
.
- Replaced
&mut self
arguments that are no longer needed. - Updated cargo dependencies.
README.md
, a basic description about this library.tests/smoke.rs
: integration test for poll-driven, asynchronous, sockets.zmq_tokio::Context
, wrapper forzmq_mio::Context
, which buildszmq_tokio::Socket
instances.zmq_tokio::Socket
, wrapper fortokio_core::reactor::PollEvented<zmq_mio::Socket>
, capable of running on a tokio reactor.zmq_tokio::SocketFramed
, a type that implementsfutures::Sink
andfutures::Stream
.