Trait libp2p_swarm::protocols_handler::InboundUpgradeSend[][src]

pub trait InboundUpgradeSend: UpgradeInfoSend {
    type Output: Send + 'static;
    type Error: Send + 'static;
    type Future: Future<Output = Result<Self::Output, Self::Error>> + Send + 'static;
    fn upgrade_inbound(
        self,
        socket: NegotiatedSubstream,
        info: Self::Info
    ) -> Self::Future; }
Expand description

Implemented automatically on all types that implement InboundUpgrade and Send + 'static.

Do not implement this trait yourself. Instead, please implement InboundUpgrade.

Associated Types

Equivalent to InboundUpgrade::Output.

Equivalent to InboundUpgrade::Error.

Equivalent to InboundUpgrade::Future.

Required methods

Implementors