Skip to content

Version 0.2.0

Compare
Choose a tag to compare
@asonix asonix released this 07 Jan 22:41

This version doesn't have a whole lot of difference from 0.1.3, other than it should be completely working now. Some socket types were fine with read and write methods intermingling need_read and need_write, but some socket types (namely router) really didn't like that.

API Changes:

  • Req now implements StreamSocket and SinkSocket instead of FutureSocket. All the same functionality is provided in addition to Req now having a controlled variant.
  • The FutureSocket trait no longer exists
  • SockConfigStart has been renamed SocketBuilder
  • To build sockets, the call is now Socket::create instead of Socket::new
  • SocketBuilder::new now accepts a reference to a tokio_core::reactor::Handle instead of the handle itself.
  • SocketBuilder now has an identity method to set the socket's identity.
  • PairConfigStart has been removed in favour of SocketBuilder::pair(self, addr: &str, bind: bool)
  • Multipart is it's own type now, wrapping VecDeque. Multipart implements From<zmq::Message> and From<Vec<zmq::Message>>

Other changes:

  • Added example for load-balancing req workers and req clients with routers

crates.io
docs.rs