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