Trait libp2p::swarm::protocols_handler::UpgradeInfoSend
source · [−]pub trait UpgradeInfoSend: 'static + Send {
type Info: 'static + ProtocolName + Clone + Send;
type InfoIter: 'static + Iterator + Send;
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
.
Associated Types
type Info: 'static + ProtocolName + Clone + Send
type Info: 'static + ProtocolName + Clone + Send
Equivalent to UpgradeInfo::Info
.
Equivalent to UpgradeInfo::InfoIter
.
Required methods
fn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::InfoIter
Equivalent to UpgradeInfo::protocol_info
.