Function libp2p_core::muxing::outbound_from_ref
source · [−]pub fn outbound_from_ref<P>(muxer: P) -> OutboundSubstreamRefFuture<P>ⓘNotable traits for OutboundSubstreamRefFuture<P>impl<P> Future for OutboundSubstreamRefFuture<P> where
P: Deref,
P::Target: StreamMuxer, type Output = Result<<P::Target as StreamMuxer>::Substream, <P::Target as StreamMuxer>::Error>;
where
P: Deref,
P::Target: StreamMuxer,
Expand description
Builds a new future for an outbound substream, where the muxer is a reference.