Struct tokio_zmq::Pair [] [src]

pub struct Pair { /* fields omitted */ }

The PAIR SocketType wrapper type.

Pair implements StreamSocket and SinkSocket, and has an associated controlled variant.

Methods

impl Pair
[src]

[src]

Construct a controlled variant of the Pair socket

Trait Implementations

impl Clone for Pair
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsSocket for Pair
[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 Pair
[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 SinkSocket for Pair
[src]

[src]

Send a single multipart message to the socket. Read more

[src]

Send a stream of multipart messages to the socket. Read more

impl<'a> TryFrom<PairConfig<'a>> for Pair
[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.