logo
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>>, 
Expand description

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