Trait libp2p_swarm::protocols_handler::UpgradeInfoSend[][src]

pub trait UpgradeInfoSend: Send + 'static {
    type Info: ProtocolName + Clone + Send + 'static;
    type InfoIter: Iterator<Item = Self::Info> + Send + 'static;
    fn protocol_info(&self) -> Self::InfoIter;
}

Implemented automatically on all types that implement UpgradeInfo and Send + 'static.

Do not implement this trait yourself. Instead, please implement UpgradeInfo.

Associated Types

type Info: ProtocolName + Clone + Send + 'static[src]

Equivalent to UpgradeInfo::Info.

type InfoIter: Iterator<Item = Self::Info> + Send + 'static[src]

Equivalent to UpgradeInfo::InfoIter.

Loading content...

Required methods

fn protocol_info(&self) -> Self::InfoIter[src]

Loading content...

Implementors

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

type Info = IndexedProtoName<H::Info>

type InfoIter = IntoIter<Self::Info>

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

type Info = T::Info

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

Loading content...