pub trait InboundUpgradeSend: UpgradeInfoSend {
    type Output: Send + 'static;
    type Error: Send + 'static;
    type Future: Future<Output = Result<Self::Output, Self::Error>> + Send + 'static;

    // Required method
    fn upgrade_inbound(
        self,
        socket: Negotiated<SubstreamBox>,
        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.

Required Associated Types§

source

type Output: Send + 'static

Equivalent to InboundUpgrade::Output.

source

type Error: Send + 'static

Equivalent to InboundUpgrade::Error.

source

type Future: Future<Output = Result<Self::Output, Self::Error>> + Send + 'static

Equivalent to InboundUpgrade::Future.

Required Methods§

source

fn upgrade_inbound( self, socket: Negotiated<SubstreamBox>, info: Self::Info ) -> Self::Future

Implementors§