Struct libp2p::swarm::protocols_handler::multi::Upgrade [−][src]
pub struct Upgrade<K, H> { /* fields omitted */ }Expand description
Inbound and outbound upgrade for all ProtocolsHandlers.
Trait Implementations
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
K: Send + 'static,
H: InboundUpgradeSend, [src]
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
K: Send + 'static,
H: InboundUpgradeSend, [src]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.
pub fn upgrade_inbound(
self,
resource: Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info
) -> <Upgrade<K, H> as InboundUpgradeSend>::Future[src]
pub fn upgrade_inbound(
self,
resource: Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info
) -> <Upgrade<K, H> as InboundUpgradeSend>::Future[src]Equivalent to InboundUpgrade::upgrade_inbound.
impl<K, H> OutboundUpgradeSend for Upgrade<K, H> where
K: Send + 'static,
H: OutboundUpgradeSend, [src]
impl<K, H> OutboundUpgradeSend for Upgrade<K, H> where
K: Send + 'static,
H: OutboundUpgradeSend, [src]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.
pub fn upgrade_outbound(
self,
resource: Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info
) -> <Upgrade<K, H> as OutboundUpgradeSend>::Future[src]
pub fn upgrade_outbound(
self,
resource: Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info
) -> <Upgrade<K, H> as OutboundUpgradeSend>::Future[src]Equivalent to OutboundUpgrade::upgrade_outbound.
type Info = IndexedProtoName<<H as UpgradeInfoSend>::Info>
type Info = IndexedProtoName<<H as UpgradeInfoSend>::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
pub fn vzip(self) -> V