Trait libp2p::swarm::handler::InboundUpgradeSend
source · pub trait InboundUpgradeSend: UpgradeInfoSend {
type Output: 'static + Send;
type Error: 'static + Send;
type Future: 'static + Future<Output = Result<Self::Output, Self::Error>> + Send;
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§
sourcetype Output: 'static + Send
type Output: 'static + Send
Equivalent to InboundUpgrade::Output.
sourcetype Error: 'static + Send
type Error: 'static + Send
Equivalent to InboundUpgrade::Error.
Required Methods§
sourcefn upgrade_inbound(
self,
socket: Negotiated<SubstreamBox>,
info: Self::Info
) -> Self::Future
fn upgrade_inbound(
self,
socket: Negotiated<SubstreamBox>,
info: Self::Info
) -> Self::Future
Equivalent to InboundUpgrade::upgrade_inbound.