logo
pub fn substream_from_ref<P>(
    muxer: P,
    substream: <<P as Deref>::Target as StreamMuxer>::Substream
) -> SubstreamRef<P> where
    P: Deref,
    <P as Deref>::Target: StreamMuxer
Expand description

Builds an implementation of Read/Write/AsyncRead/AsyncWrite from an Arc to the muxer and a substream.