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