Function libp2p_core::upgrade::apply

source ·
pub fn apply<C, U>(
    conn: C,
    up: U,
    cp: ConnectedPoint,
    v: Version,
) -> Either<InboundUpgradeApply<C, U>, OutboundUpgradeApply<C, U>> 
Expand description

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