[][src]Trait tokio_zmq::prelude::IntoInnerSocket

pub trait IntoInnerSocket: From<Self::Socket> {
    type Socket: InnerSocket<Self>;
    fn socket(self) -> Self::Socket;
fn kind() -> SocketType; }

The IntoInnerSocket trait is implemented for all wrapper types. This makes implementing other traits a matter of saying a given type implements them.

Associated Types

type Socket: InnerSocket<Self>

Loading content...

Required methods

fn socket(self) -> Self::Socket

Any type implementing IntoInnerSocket must have a way of returning an InnerSocket.

fn kind() -> SocketType

Loading content...

Implementors

impl IntoInnerSocket for Dealer[src]

type Socket = Socket

impl IntoInnerSocket for Pair[src]

type Socket = Socket

impl IntoInnerSocket for Pub[src]

type Socket = Socket

impl IntoInnerSocket for Pull[src]

type Socket = Socket

impl IntoInnerSocket for Push[src]

type Socket = Socket

impl IntoInnerSocket for Rep[src]

type Socket = Socket

impl IntoInnerSocket for Req[src]

type Socket = Socket

impl IntoInnerSocket for Router[src]

type Socket = Socket

impl IntoInnerSocket for Sub[src]

type Socket = Socket

impl IntoInnerSocket for Xpub[src]

type Socket = Socket

impl IntoInnerSocket for Xsub[src]

type Socket = Socket

Loading content...