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