[−][src]Trait libp2p_swarm::protocols_handler::InboundUpgradeSend
Implemented automatically on all types that implement
InboundUpgrade
and Send + 'static
.
Do not implement this trait yourself. Instead, please implement
InboundUpgrade
.
Associated Types
type Output: Send + 'static
Equivalent to InboundUpgrade::Output
.
type Error: Send + 'static
Equivalent to InboundUpgrade::Error
.
type Future: Future<Output = Result<Self::Output, Self::Error>> + Send + 'static
Equivalent to InboundUpgrade::Future
.
Required methods
fn upgrade_inbound(
self,
socket: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
self,
socket: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
Equivalent to InboundUpgrade::upgrade_inbound
.
Implementors
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
H: InboundUpgradeSend,
K: Send + 'static,
[src]
H: InboundUpgradeSend,
K: Send + 'static,
type Output = (K, <H as InboundUpgradeSend>::Output)
type Error = (K, <H as InboundUpgradeSend>::Error)
type Future = BoxFuture<'static, Result<Self::Output, Self::Error>>
fn upgrade_inbound(
self,
resource: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
[src]
self,
resource: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
impl<T, TInfo> InboundUpgradeSend for T where
T: InboundUpgrade<NegotiatedSubstream, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
TInfo: ProtocolName + Clone + Send + 'static,
T::Output: Send + 'static,
T::Error: Send + 'static,
T::Future: Send + 'static,
[src]
T: InboundUpgrade<NegotiatedSubstream, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
TInfo: ProtocolName + Clone + Send + 'static,
T::Output: Send + 'static,
T::Error: Send + 'static,
T::Future: Send + 'static,
type Output = T::Output
type Error = T::Error
type Future = T::Future
fn upgrade_inbound(
self,
socket: NegotiatedSubstream,
info: TInfo
) -> Self::Future
[src]
self,
socket: NegotiatedSubstream,
info: TInfo
) -> Self::Future