pub trait UpgradeInfo: Send {
type Info: ProtocolName + Clone + Send + Sync + Debug;
// Required method
fn protocol_info(&self) -> Vec<Self::Info>;
}Required Associated Types§
Required Methods§
Sourcefn protocol_info(&self) -> Vec<Self::Info>
fn protocol_info(&self) -> Vec<Self::Info>
Returns the list of protocols that are supported. Used during the negotiation process.