Trait libp2p_swarm::handler::UpgradeInfoSend
source · 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§
sourcetype Info: ProtocolName + Clone + Send + 'static
type Info: ProtocolName + Clone + Send + 'static
Equivalent to UpgradeInfo::Info
.
Required Methods§
sourcefn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::InfoIter
Equivalent to UpgradeInfo::protocol_info
.