[][src]Function libp2p_core::muxing::inbound_from_ref_and_wrap

pub fn inbound_from_ref_and_wrap<P>(
    muxer: P
) -> impl Future<Item = Option<SubstreamRef<P>>, Error = IoError> where
    P: Deref + Clone,
    P::Target: StreamMuxer

Polls for an inbound from the muxer but wraps the output in an object that implements Read/Write/AsyncRead/AsyncWrite.