Struct libp2p_swarm::protocols_handler::multi::Upgrade   [−][src]
pub struct Upgrade<K, H> { /* fields omitted */ }Inbound and outbound upgrade for all ProtocolsHandlers.
Trait Implementations
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
    H: InboundUpgradeSend,
    K: Send + 'static, [src]
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
    H: InboundUpgradeSend,
    K: Send + 'static, [src]type Output = (K, <H as InboundUpgradeSend>::Output)
Equivalent to InboundUpgrade::Output.
type Error = (K, <H as InboundUpgradeSend>::Error)
Equivalent to InboundUpgrade::Error.
type Future = BoxFuture<'static, Result<Self::Output, Self::Error>>
Equivalent to InboundUpgrade::Future.
fn upgrade_inbound(
    self, 
    resource: NegotiatedSubstream, 
    info: Self::Info
) -> Self::Future[src]
self,
resource: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
impl<K, H> OutboundUpgradeSend for Upgrade<K, H> where
    H: OutboundUpgradeSend,
    K: Send + 'static, [src]
impl<K, H> OutboundUpgradeSend for Upgrade<K, H> where
    H: OutboundUpgradeSend,
    K: Send + 'static, [src]type Output = (K, <H as OutboundUpgradeSend>::Output)
Equivalent to OutboundUpgrade::Output.
type Error = (K, <H as OutboundUpgradeSend>::Error)
Equivalent to OutboundUpgrade::Error.
type Future = BoxFuture<'static, Result<Self::Output, Self::Error>>
Equivalent to OutboundUpgrade::Future.
fn upgrade_outbound(
    self, 
    resource: NegotiatedSubstream, 
    info: Self::Info
) -> Self::Future[src]
self,
resource: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
impl<K, H> UpgradeInfoSend for Upgrade<K, H> where
    H: UpgradeInfoSend,
    K: Send + 'static, [src]
impl<K, H> UpgradeInfoSend for Upgrade<K, H> where
    H: UpgradeInfoSend,
    K: Send + 'static, [src]type Info = IndexedProtoName<H::Info>
Equivalent to UpgradeInfo::Info.
type InfoIter = IntoIter<Self::Info>
Equivalent to UpgradeInfo::InfoIter.
fn protocol_info(&self) -> Self::InfoIter[src]
Auto Trait Implementations
impl<K, H> RefUnwindSafe for Upgrade<K, H> where
    H: RefUnwindSafe,
    K: RefUnwindSafe, 
H: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, H> Send for Upgrade<K, H> where
    H: Send,
    K: Send, 
H: Send,
K: Send,
impl<K, H> Sync for Upgrade<K, H> where
    H: Sync,
    K: Sync, 
H: Sync,
K: Sync,
impl<K, H> Unpin for Upgrade<K, H> where
    H: Unpin,
    K: Unpin, 
H: Unpin,
K: Unpin,
impl<K, H> UnwindSafe for Upgrade<K, H> where
    H: UnwindSafe,
    K: UnwindSafe, 
H: UnwindSafe,
K: UnwindSafe,