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;
}
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: ProtocolName + Clone + Send + 'static
type Info: ProtocolName + Clone + Send + 'static
Equivalent to UpgradeInfo::Info
.
Required methods
fn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::InfoIter
Equivalent to UpgradeInfo::protocol_info
.