Struct tokio_zmq::Sub [] [src]

pub struct Sub { /* fields omitted */ }

The SUB SocketType wrapper type

Sub implements StreamSocket, and has an associated controlled variant.

Methods

impl Sub
[src]

[src]

Construct a controlled variant of the Sub socket

Trait Implementations

impl Clone for Sub
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsSocket for Sub
[src]

[src]

Any type implementing AsSocket must have a way of returning a reference to a Socket.

[src]

Any type implementing AsSocket must have a way of consuming itself and returning a socket.

impl StreamSocket for Sub
[src]

[src]

Receive a single multipart message from the socket. Read more

[src]

Receive a stream of multipart messages from the socket. Read more

[src]

Receive a stream of multipart messages from the socket ending when end_handler's should_stop returns true. Read more

impl<'a> TryFrom<SubConfig<'a>> for Sub
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[src]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.