Trait fizyr_rpc::util::IntoTransport [−][src]
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, { ... } }
Expand description
Trait to allow generic creation of transports from a socket.
Associated Types
Required methods
fn into_transport(self, config: Self::Config) -> Self::Transport
[src]
fn into_transport(self, config: Self::Config) -> Self::Transport
[src]Create a transport from self
and a configuration struct.
Provided methods
fn into_default_transport(self) -> Self::Transport where
Self::Config: Default,
[src]
fn into_default_transport(self) -> Self::Transport where
Self::Config: Default,
[src]Create a transport from self
using the default configuration.
Implementations on Foreign Types
impl IntoTransport for UnixStream
[src]
impl IntoTransport for UnixStream
[src]type Body = StreamBody
type Config = StreamConfig
type Transport = StreamTransport<UnixStream>
fn into_transport(self, config: Self::Config) -> Self::Transport
[src]
impl IntoTransport for TcpStream
[src]
impl IntoTransport for TcpStream
[src]type Body = StreamBody
type Config = StreamConfig
type Transport = StreamTransport<TcpStream>
fn into_transport(self, config: Self::Config) -> Self::Transport
[src]
impl IntoTransport for UnixSeqpacket
[src]
impl IntoTransport for UnixSeqpacket
[src]