[][src]Struct tokio_zmq::Socket

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]

pub fn builder<T>(ctx: Arc<Context>) -> SocketBuilder<'static, T> where
    T: IntoInnerSocket
[src]

Start a new Socket Config builder

pub fn inner(self) -> (Socket, EventedFile)[src]

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

pub fn from_sock_and_file(sock: Socket, file: EventedFile) -> Self[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.

pub fn from_sock(sock: Socket) -> Result<Self, Error>[src]

Create a new socket from a given Sock

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

Trait Implementations

impl From<Socket> for Dealer[src]

impl From<Socket> for Pair[src]

impl From<Socket> for Pub[src]

impl From<Socket> for Pull[src]

impl From<Socket> for Push[src]

impl From<Socket> for Rep[src]

impl From<Socket> for Req[src]

impl From<Socket> for Router[src]

impl From<Socket> for Sub[src]

impl From<Socket> for Xpub[src]

impl From<Socket> for Xsub[src]

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

impl Debug for Socket[src]

impl Display for Socket[src]

impl<T> IntoSocket<T, Socket> for MultipartSink<T> where
    T: From<Socket>, 
[src]

impl<T> IntoSocket<T, Socket> for MultipartSinkStream<T> where
    T: From<Socket>, 
[src]

impl<T> IntoSocket<T, Socket> for MultipartStream<T> where
    T: From<Socket>, 
[src]

impl<T> InnerSocket<T> for Socket where
    T: IntoInnerSocket + From<Self>, 
[src]

type Request = MultipartRequest<T>

The future that sends a multipart to a ZMQ socket

type Response = MultipartResponse<T>

The future that receives a multipart from a ZMQ socket

type Sink = MultipartSink<T>

A Sink that sends multiparts to a ZMQ socket

type Stream = MultipartStream<T>

A Stream of multiparts received from a ZMQ socket

type SinkStream = MultipartSinkStream<T>

A Sink and Stream that sends and receives multiparts from a ZMQ socket

Auto Trait Implementations

impl Send for Socket

impl !Sync for Socket

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T