pub trait UpgradeInfoSend: Send + 'static {
    type Info: ProtocolName + Clone + Send + 'static;
    type InfoIter: Iterator<Item = Self::Info> + Send + 'static;

    // Required method
    fn protocol_info(&self) -> Self::InfoIter;
}
Expand description

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

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

Required Associated Types§

source

type Info: ProtocolName + Clone + Send + 'static

Equivalent to UpgradeInfo::Info.

source

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

Equivalent to UpgradeInfo::InfoIter.

Required Methods§

source

fn protocol_info(&self) -> Self::InfoIter

Implementors§

source§

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

source§

impl<T> UpgradeInfoSend for Twhere T: UpgradeInfo + Send + 'static, T::Info: Send + 'static, <T::InfoIter as IntoIterator>::IntoIter: Send + 'static,