Struct libp2p_swarm::protocols_handler::multi::Upgrade
source · [−]pub struct Upgrade<K, H> { /* private fields */ }Expand description
Inbound and outbound upgrade for all ProtocolsHandlers.
Trait Implementations
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
H: InboundUpgradeSend,
K: Send + 'static,
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
H: InboundUpgradeSend,
K: Send + 'static,
type Output = (K, <H as InboundUpgradeSend>::Output)
type Output = (K, <H as InboundUpgradeSend>::Output)
Equivalent to InboundUpgrade::Output.
type Error = (K, <H as InboundUpgradeSend>::Error)
type Error = (K, <H as InboundUpgradeSend>::Error)
Equivalent to InboundUpgrade::Error.
Equivalent to InboundUpgrade::Future.
Equivalent to InboundUpgrade::upgrade_inbound.
impl<K, H> OutboundUpgradeSend for Upgrade<K, H> where
H: OutboundUpgradeSend,
K: Send + 'static,
impl<K, H> OutboundUpgradeSend for Upgrade<K, H> where
H: OutboundUpgradeSend,
K: Send + 'static,
type Output = (K, <H as OutboundUpgradeSend>::Output)
type Output = (K, <H as OutboundUpgradeSend>::Output)
Equivalent to OutboundUpgrade::Output.
type Error = (K, <H as OutboundUpgradeSend>::Error)
type Error = (K, <H as OutboundUpgradeSend>::Error)
Equivalent to OutboundUpgrade::Error.
Equivalent to OutboundUpgrade::Future.
Equivalent to OutboundUpgrade::upgrade_outbound.
type Info = IndexedProtoName<H::Info>
type Info = IndexedProtoName<H::Info>
Equivalent to UpgradeInfo::Info.
Equivalent to UpgradeInfo::InfoIter.
Equivalent to UpgradeInfo::protocol_info.
Auto Trait Implementations
impl<K, H> RefUnwindSafe for Upgrade<K, H> where
H: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, H> UnwindSafe for Upgrade<K, H> where
H: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more