[][src]Trait fizyr_rpc::util::IntoTransport

pub trait IntoTransport: Sized + Send {
    type Body: Body;
    type Config: Clone + Send + Sync + 'static;
    type Transport: Transport<Body = Self::Body> + Send + 'static;
    fn into_transport(self, config: Self::Config) -> Self::Transport;

    fn into_default_transport(self) -> Self::Transport
    where
        Self::Config: Default
, { ... } }

Trait to allow generic creation of transports from a socket.

Associated Types

type Body: Body[src]

The body type for messages transferred over the transport.

type Config: Clone + Send + Sync + 'static[src]

The configuration type of the transport.

type Transport: Transport<Body = Self::Body> + Send + 'static[src]

The transport type.

Loading content...

Required methods

fn into_transport(self, config: Self::Config) -> Self::Transport[src]

Create a transport from self and a configuration struct.

Loading content...

Provided methods

fn into_default_transport(self) -> Self::Transport where
    Self::Config: Default
[src]

Create a transport from self using the default configuration.

Loading content...

Implementations on Foreign Types

impl IntoTransport for UnixStream[src]

impl IntoTransport for TcpStream[src]

impl IntoTransport for UnixSeqpacket[src]

Loading content...

Implementors

Loading content...