Trait libp2p::swarm::handler::OutboundUpgradeSend
source · pub trait OutboundUpgradeSend: UpgradeInfoSend {
type Output: 'static + Send;
type Error: 'static + Send;
type Future: 'static + Future<Output = Result<Self::Output, Self::Error>> + Send;
fn upgrade_outbound(
self,
socket: Negotiated<SubstreamBox>,
info: Self::Info
) -> Self::Future;
}
Expand description
Implemented automatically on all types that implement
OutboundUpgrade
and Send + 'static
.
Do not implement this trait yourself. Instead, please implement
OutboundUpgrade
.
Required Associated Types§
sourcetype Output: 'static + Send
type Output: 'static + Send
Equivalent to OutboundUpgrade::Output
.
sourcetype Error: 'static + Send
type Error: 'static + Send
Equivalent to OutboundUpgrade::Error
.
Required Methods§
sourcefn upgrade_outbound(
self,
socket: Negotiated<SubstreamBox>,
info: Self::Info
) -> Self::Future
fn upgrade_outbound(
self,
socket: Negotiated<SubstreamBox>,
info: Self::Info
) -> Self::Future
Equivalent to OutboundUpgrade::upgrade_outbound
.