Trait UpgradeInfoSend
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§
type InfoIter: Iterator<Item = Self::Info> + Send + 'static
type InfoIter: Iterator<Item = Self::Info> + Send + 'static
Equivalent to UpgradeInfo::InfoIter
.
Required Methods§
fn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::InfoIter
Equivalent to UpgradeInfo::protocol_info
.