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]

[src]

Start a new Socket Config builder

[src]

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

[src]

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.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

Trait Implementations

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

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Socket

impl !Sync for Socket