Struct tokio_zmq::socket::Socket[][src]

pub struct Socket { /* fields omitted */ }

Defines the raw Socket type. This type should never be interacted with directly, except to create new instances of wrapper types.

Methods

impl Socket
[src]

Start a new Socket Config builder

Retrieve a Reference-Counted Pointer to self's socket.

Create a new socket from a given Sock and File

This assumes that sock is already configured properly. Please don't call this directly unless you know what you're doing.

Retrieve a Sink that consumes Multiparts, sending them to the socket

Retrieve a Stream that produces Multiparts, getting them from the socket

Retrieve a structure that is both a Stream that produces Multiparts and a Sink that consumes Multiparts.

Retrieve a Future that consumes a multipart, sending it to the socket

Retrieve a Future that produces a multipart, getting it fromthe socket

Trait Implementations

impl From<(Socket, PollEvented<File<ZmqFile>>)> for Socket
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Socket

impl !Sync for Socket