Struct tokio_zmq::socket::types::Pair [−][src]
pub struct Pair { /* fields omitted */ }
The PAIR SocketType
wrapper type.
Pair implements StreamSocket
and SinkSocket
, and has an associated controlled variant.
Trait Implementations
impl From<(Socket, EventedFile)> for Pair
[src]
impl From<(Socket, EventedFile)> for Pair
impl AsSocket for Pair
[src]
impl AsSocket for Pair
fn socket(self) -> Socket
[src]
fn socket(self) -> Socket
Any type implementing AsSocket
must have a way of returning a reference to a Socket.
impl StreamSocket for Pair
[src]
impl StreamSocket for Pair
fn recv(self) -> MultipartResponse<Self>
[src]
fn recv(self) -> MultipartResponse<Self>
Receive a single multipart message from the socket. Read more
fn stream(self) -> MultipartStream
[src]
fn stream(self) -> MultipartStream
Receive a stream of multipart messages from the socket. Read more
impl SinkSocket for Pair
[src]
impl SinkSocket for Pair
fn send(self, multipart: Multipart) -> MultipartRequest<Self>
[src]
fn send(self, multipart: Multipart) -> MultipartRequest<Self>
Send a single multipart message to the socket. Read more
fn sink(self) -> MultipartSink
[src]
fn sink(self) -> MultipartSink
Send a stream of multipart messages to the socket. Read more