Version 0.2.0
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 implementsStreamSocket
andSinkSocket
instead ofFutureSocket
. All the same functionality is provided in addition toReq
now having a controlled variant.- The
FutureSocket
trait no longer exists SockConfigStart
has been renamedSocketBuilder
- To build sockets, the call is now
Socket::create
instead ofSocket::new
SocketBuilder::new
now accepts a reference to atokio_core::reactor::Handle
instead of the handle itself.SocketBuilder
now has anidentity
method to set the socket's identity.PairConfigStart
has been removed in favour ofSocketBuilder::pair(self, addr: &str, bind: bool)
Multipart
is it's own type now, wrapping VecDeque.Multipart
implementsFrom<zmq::Message>
andFrom<Vec<zmq::Message>>
Other changes:
- Added example for load-balancing
req
workers andreq
clients withrouters