Struct libp2p::swarm::protocols_handler::multi::Upgrade [−][src]
Inbound and outbound upgrade for all ProtocolsHandler
s.
Trait Implementations
impl<K, H> Clone for Upgrade<K, H> where
K: Clone,
H: Clone,
[src]
K: Clone,
H: Clone,
impl<K, H> Debug for Upgrade<K, H> where
K: Debug + Eq + Hash,
H: Debug,
[src]
K: Debug + Eq + Hash,
H: Debug,
impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
K: Send + 'static,
H: InboundUpgradeSend,
[src]
K: Send + 'static,
H: InboundUpgradeSend,
type Output = (K, <H as InboundUpgradeSend>::Output)
Equivalent to InboundUpgrade::Output
.
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>> + 'static + Send, Global>>
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]
self,
resource: Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info
) -> <Upgrade<K, H> as InboundUpgradeSend>::Future
impl<K, H> OutboundUpgradeSend for Upgrade<K, H> where
K: Send + 'static,
H: OutboundUpgradeSend,
[src]
K: Send + 'static,
H: OutboundUpgradeSend,
type Output = (K, <H as OutboundUpgradeSend>::Output)
Equivalent to OutboundUpgrade::Output
.
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>> + 'static + Send, Global>>
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]
self,
resource: Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info
) -> <Upgrade<K, H> as OutboundUpgradeSend>::Future
impl<K, H> UpgradeInfoSend for Upgrade<K, H> where
K: Send + 'static,
H: UpgradeInfoSend,
[src]
K: Send + 'static,
H: UpgradeInfoSend,
type Info = IndexedProtoName<<H as UpgradeInfoSend>::Info>
Equivalent to UpgradeInfo::Info
.
type InfoIter = IntoIter<<Upgrade<K, H> as UpgradeInfoSend>::Info, Global>
Equivalent to UpgradeInfo::InfoIter
.
pub fn protocol_info(&self) -> <Upgrade<K, H> as UpgradeInfoSend>::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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,