Module tokio_zmq::prelude [] [src]

Provide useful types and traits for working with Tokio ZMQ.

Structs

DefaultEndHandler

Traits

AsControlledSocket

Analogous to the AsSocket trait, but for Controlled sockets.

AsSocket

The AsSocket trait is implemented for all wrapper types. This makes implementing other traits a matter of saying a given type implements them.

ControlHandler

The ControlHandler trait is used to impose stopping rules for streams that otherwise would continue to create multiparts.

ControlledSinkSocket

In addition to having Streams, some sockets also have Sinks. Every controlled socket has a stream, but to give Sink functionality to those that have Sinks as well, this trait is implemented.

ControlledStreamSocket

This trait is used for types wrapping ControlledSockets. It depends on the type implementing AsControlledSocket, which is analogous to the AsSocket trait's socket(&self) method.

EndHandler

The EndHandler trait is used to impose stopping rules for streams that otherwise would continue to create multiparts.

FutureSocket

This trait is used for socket types that don't really fit in the context of Stream or Sink. Typically interaction with these sockets is one-off. This trait provides implementations for send and recv.

SinkSocket

This trait provides the basic Sink support for ZeroMQ Sockets. It depends on AsSocket and provides the send and sink methods.

StreamSocket

This trait provides the basic Stream support for ZeroMQ Sockets. It depends on AsSocket, but provides implementations for sink and recv.