Struct tokio_zmq::socket::types::Router [−][src]
pub struct Router { /* fields omitted */ }
The ROUTER SocketType
wrapper type
Router implements StreamSocket
and SinkSocket
, and has an associated controlled variant.
Trait Implementations
impl Clone for Router
[src]
impl Clone for Router
fn clone(&self) -> Router
[src]
fn clone(&self) -> Router
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl AsSocket for Router
[src]
impl AsSocket for Router
fn socket(&self) -> &Socket
[src]
fn socket(&self) -> &Socket
Any type implementing AsSocket
must have a way of returning a reference to a Socket.
fn into_socket(self) -> Socket
[src]
fn into_socket(self) -> Socket
Any type implementing AsSocket
must have a way of consuming itself and returning a socket.
impl StreamSocket for Router
[src]
impl StreamSocket for Router
fn recv(&self) -> MultipartResponse
[src]
fn recv(&self) -> MultipartResponse
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 Router
[src]
impl SinkSocket for Router
fn send(&self, multipart: Multipart) -> MultipartRequest
[src]
fn send(&self, multipart: Multipart) -> MultipartRequest
Send a single multipart message to the socket. Read more
fn sink<E>(&self) -> MultipartSink<E> where
E: From<Error>,
[src]
fn sink<E>(&self) -> MultipartSink<E> where
E: From<Error>,
Send a stream of multipart messages to the socket. Read more
impl<'a> TryFrom<SockConfig<'a>> for Router
[src]
impl<'a> TryFrom<SockConfig<'a>> for Router