Function libp2p::core::upgrade::apply [−][src]
pub fn apply<C, U>(
conn: C,
up: U,
cp: ConnectedPoint,
v: Version
) -> Either<InboundUpgradeApply<C, U>, OutboundUpgradeApply<C, U>> where
C: AsyncRead + AsyncWrite + Unpin,
U: InboundUpgrade<Negotiated<C>> + OutboundUpgrade<Negotiated<C>>,
Applies an upgrade to the inbound and outbound direction of a connection or substream.