[][src]Function libp2p_core::upgrade::apply

pub fn apply<C, U>(
    conn: C,
    up: U,
    cp: ConnectedPoint
) -> Either<InboundUpgradeApply<C, U>, OutboundUpgradeApply<C, U>> where
    C: AsyncRead + AsyncWrite,
    U: InboundUpgrade<C> + OutboundUpgrade<C>, 

Applies an upgrade to the inbound and outbound direction of a connection or substream.