Struct tokio_zmq::Dealer
[−]
[src]
pub struct Dealer { /* fields omitted */ }
The DEALER SocketType wrapper type.
Dealer implements StreamSocket and SinkSocket, and has an associated controlled variant.
Methods
impl Dealer
[src]
fn controlled<S>(self, control: S) -> DealerControlled where
S: StreamSocket,
[src]
S: StreamSocket,
Construct a controled version of the Dealer socket.
Trait Implementations
impl Clone for Dealer
[src]
fn clone(&self) -> Dealer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsSocket for Dealer
[src]
fn socket(&self) -> &Socket
[src]
Any type implementing AsSocket must have a way of returning a reference to a Socket.
fn into_socket(self) -> Socket
[src]
Any type implementing AsSocket must have a way of consuming itself and returning a socket.
impl StreamSocket for Dealer
[src]
fn recv(&self) -> MultipartResponse
[src]
Receive a single multipart message from the socket. Read more
fn stream(&self) -> MultipartStream<DefaultEndHandler>
[src]
Receive a stream of multipart messages from the socket. Read more
fn stream_with_end<E>(&self, end_handler: E) -> MultipartStream<E> where
E: EndHandler,
[src]
E: EndHandler,
Receive a stream of multipart messages from the socket ending when end_handler's should_stop returns true. Read more
impl SinkSocket for Dealer
[src]
fn send(&self, multipart: Multipart) -> MultipartRequest
[src]
Send a single multipart message to the socket. Read more
fn sink<E>(&self) -> MultipartSink<E> where
E: From<Error>,
[src]
E: From<Error>,
Send a stream of multipart messages to the socket. Read more