Struct tokio_zmq::socket::Socket

source ·
pub struct Socket { /* private fields */ }
Expand description

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

Implementations§

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§

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.