pub trait OutboundConnectionUpgrade<T>: UpgradeInfo {
type Output;
type Error;
type Future: Future<Output = Result<Self::Output, Self::Error>>;
// Required method
fn upgrade_outbound(self, socket: T, info: Self::Info) -> Self::Future;
}
Expand description
Possible upgrade on an outbound connection
Required Associated Types§
Required Methods§
sourcefn upgrade_outbound(self, socket: T, info: Self::Info) -> Self::Future
fn upgrade_outbound(self, socket: T, info: Self::Info) -> Self::Future
After we have determined that the remote supports one of the protocols we support, this method is called to start the handshake.
The info
is the identifier of the protocol, as produced by protocol_info
.