Function libp2p_core::upgrade::apply_inbound
source · [−]pub fn apply_inbound<C, U>(conn: C, up: U) -> InboundUpgradeApply<C, U>ⓘNotable traits for InboundUpgradeApply<C, U>impl<C, U> Future for InboundUpgradeApply<C, U> where
C: AsyncRead + AsyncWrite + Unpin,
U: InboundUpgrade<Negotiated<C>>, type Output = Result<U::Output, UpgradeError<U::Error>>;
where
C: AsyncRead + AsyncWrite + Unpin,
U: InboundUpgrade<Negotiated<C>>,
Expand description
Tries to perform an upgrade on an inbound connection or substream.