[][src]Struct libp2p::swarm::protocols_handler::multi::Upgrade

pub struct Upgrade<K, H> { /* fields omitted */ }

Inbound and outbound upgrade for all ProtocolsHandlers.

Trait Implementations

impl<K, H> Clone for Upgrade<K, H> where
    H: Clone,
    K: Clone
[src]

impl<K, H> Debug for Upgrade<K, H> where
    H: Debug,
    K: Debug + Eq + Hash
[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 = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as InboundUpgradeSend>::Output, <Upgrade<K, H> as InboundUpgradeSend>::Error>> + 'static + Send>>

Equivalent to InboundUpgrade::Future.

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 = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as OutboundUpgradeSend>::Output, <Upgrade<K, H> as OutboundUpgradeSend>::Error>> + 'static + Send>>

Equivalent to OutboundUpgrade::Future.

impl<K, H> UpgradeInfoSend for Upgrade<K, H> where
    H: UpgradeInfoSend,
    K: Send + 'static, 
[src]

type Info = IndexedProtoName<<H as UpgradeInfoSend>::Info>

Equivalent to UpgradeInfo::Info.

type InfoIter = IntoIter<<Upgrade<K, H> as UpgradeInfoSend>::Info>

Equivalent to UpgradeInfo::InfoIter.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, TInfo> InboundUpgradeSend for T where
    T: InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
    TInfo: ProtocolName + Clone + Send + 'static,
    <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Output: Send,
    <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Output: 'static,
    <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Error: Send,
    <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Error: 'static,
    <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Future: Send,
    <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Future: 'static, 
[src]

type Output = <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Output

Equivalent to InboundUpgrade::Output.

type Error = <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Error

Equivalent to InboundUpgrade::Error.

type Future = <T as InboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Future

Equivalent to InboundUpgrade::Future.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, TInfo> OutboundUpgradeSend for T where
    T: OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
    TInfo: ProtocolName + Clone + Send + 'static,
    <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Output: Send,
    <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Output: 'static,
    <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Error: Send,
    <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Error: 'static,
    <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Future: Send,
    <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Future: 'static, 
[src]

type Output = <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Output

Equivalent to OutboundUpgrade::Output.

type Error = <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Error

Equivalent to OutboundUpgrade::Error.

type Future = <T as OutboundUpgrade<Negotiated<SubstreamRef<Arc<StreamMuxerBox>>>>>::Future

Equivalent to OutboundUpgrade::Future.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UpgradeInfoSend for T where
    T: UpgradeInfo + Send + 'static,
    <T as UpgradeInfo>::Info: Send,
    <T as UpgradeInfo>::Info: 'static,
    <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: Send,
    <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: 'static, 
[src]

type Info = <T as UpgradeInfo>::Info

Equivalent to UpgradeInfo::Info.

type InfoIter = <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter

Equivalent to UpgradeInfo::InfoIter.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,