[][src]Function libp2p::core::upgrade::apply

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<Compat01As03<Negotiated<Compat<C>>>> + OutboundUpgrade<Compat01As03<Negotiated<Compat<C>>>>, 

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