pub trait Upgrade<S>: UpgradeInfo {
type Output;
type Error;
type Future: Future<Output = Result<Self::Output, Self::Error>>;
// Required methods
fn upgrade_inbound(self, stream: S, info: Self::Info) -> Self::Future;
fn upgrade_outbound(self, stream: S, info: Self::Info) -> Self::Future;
}
Expand description
流升级
Required Associated Types§
type Output
type Error
type Future: Future<Output = Result<Self::Output, Self::Error>>
Required Methods§
Sourcefn upgrade_inbound(self, stream: S, info: Self::Info) -> Self::Future
fn upgrade_inbound(self, stream: S, info: Self::Info) -> Self::Future
升级入站流
Sourcefn upgrade_outbound(self, stream: S, info: Self::Info) -> Self::Future
fn upgrade_outbound(self, stream: S, info: Self::Info) -> Self::Future
升级出站流