pub fn substream_from_ref<P>(
muxer: P,
substream: <P::Target as StreamMuxer>::Substream,
) -> SubstreamRef<P>
Expand description
Builds an implementation of Read
/Write
/AsyncRead
/AsyncWrite
from an Arc
to the
muxer and a substream.
pub fn substream_from_ref<P>(
muxer: P,
substream: <P::Target as StreamMuxer>::Substream,
) -> SubstreamRef<P>
Builds an implementation of Read
/Write
/AsyncRead
/AsyncWrite
from an Arc
to the
muxer and a substream.