UpgradeInfo

Trait UpgradeInfo 

Source
pub trait UpgradeInfo: Send {
    type Info: ProtocolName + Clone + Send + Sync + Debug;

    // Required method
    fn protocol_info(&self) -> Vec<Self::Info>;
}

Required Associated Types§

Source

type Info: ProtocolName + Clone + Send + Sync + Debug

Opaque type representing a negotiable protocol.

Required Methods§

Source

fn protocol_info(&self) -> Vec<Self::Info>

Returns the list of protocols that are supported. Used during the negotiation process.

Implementors§