Struct tokio_zmq::socket::ControlledSocket [] [src]

pub struct ControlledSocket { /* fields omitted */ }

Defines a raw ControlledSocket type

Controlled sockets are useful for being able to stop streams. They shouldn't be created directly, but through a wrapper type's controlled method.

Methods

impl ControlledSocket
[src]

[src]

Retrieve a sink that consumes multiparts, sending them to the socket.

[src]

Retrieve a stream that produces multiparts, stopping when the should_stop control handler returns true.

[src]

Sends a single multipart to the socket

[src]

Receives a single multipart from the socket