Struct libp2p_swarm::handler::multi::Upgrade
source · pub struct Upgrade<K, H> { /* private fields */ }
Expand description
Inbound and outbound upgrade for all ConnectionHandler
s.
Trait Implementations§
source§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
.§type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as InboundUpgradeSend>::Output, <Upgrade<K, H> as InboundUpgradeSend>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as InboundUpgradeSend>::Output, <Upgrade<K, H> as InboundUpgradeSend>::Error>> + Send + 'static, Global>>
Equivalent to
InboundUpgrade::Future
.source§fn upgrade_inbound(
self,
resource: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
fn upgrade_inbound( self, resource: NegotiatedSubstream, info: Self::Info ) -> Self::Future
Equivalent to
InboundUpgrade::upgrade_inbound
.source§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
.§type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as OutboundUpgradeSend>::Output, <Upgrade<K, H> as OutboundUpgradeSend>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as OutboundUpgradeSend>::Output, <Upgrade<K, H> as OutboundUpgradeSend>::Error>> + Send + 'static, Global>>
Equivalent to
OutboundUpgrade::Future
.source§fn upgrade_outbound(
self,
resource: NegotiatedSubstream,
info: Self::Info
) -> Self::Future
fn upgrade_outbound( self, resource: NegotiatedSubstream, info: Self::Info ) -> Self::Future
Equivalent to
OutboundUpgrade::upgrade_outbound
.source§impl<K, H> UpgradeInfoSend for Upgrade<K, H>where
H: UpgradeInfoSend,
K: Send + 'static,
impl<K, H> UpgradeInfoSend for Upgrade<K, H>where H: UpgradeInfoSend, K: Send + 'static,
§type Info = IndexedProtoName<<H as UpgradeInfoSend>::Info>
type Info = IndexedProtoName<<H as UpgradeInfoSend>::Info>
Equivalent to
UpgradeInfo::Info
.§type InfoIter = IntoIter<<Upgrade<K, H> as UpgradeInfoSend>::Info, Global>
type InfoIter = IntoIter<<Upgrade<K, H> as UpgradeInfoSend>::Info, Global>
Equivalent to
UpgradeInfo::InfoIter
.source§fn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::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> Send for Upgrade<K, H>where H: Send, K: Send,
impl<K, H> Sync for Upgrade<K, H>where H: Sync, K: Sync,
impl<K, H> Unpin for Upgrade<K, H>where H: Unpin, K: Unpin,
impl<K, H> UnwindSafe for Upgrade<K, H>where H: UnwindSafe, K: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more