Trait OutboundUpgradeSend
pub trait OutboundUpgradeSend: UpgradeInfoSend {
type Output: Send + 'static;
type Error: Send + 'static;
type Future: Future<Output = Result<Self::Output, Self::Error>> + Send + 'static;
// Required method
fn upgrade_outbound(self, socket: Stream, 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§
type Output: Send + 'static
type Output: Send + 'static
Equivalent to OutboundUpgrade::Output
.
type Error: Send + 'static
type Error: Send + 'static
Equivalent to OutboundUpgrade::Error
.
Required Methods§
fn upgrade_outbound(self, socket: Stream, info: Self::Info) -> Self::Future
fn upgrade_outbound(self, socket: Stream, info: Self::Info) -> Self::Future
Equivalent to
OutboundUpgrade::upgrade_outbound
.