Trait libp2prs_core::upgrade::UpgradeInfo [−][src]
pub trait UpgradeInfo: Send { type Info: ProtocolName + Clone + Send + Sync + Debug; fn protocol_info(&self) -> Vec<Self::Info>; }
Associated Types
type Info: ProtocolName + Clone + Send + Sync + Debug
[src]
Opaque type representing a negotiable protocol.
Required methods
fn protocol_info(&self) -> Vec<Self::Info>
[src]
Returns the list of protocols that are supported. Used during the negotiation process.
Implementors
impl UpgradeInfo for DummyUpgrader
[src]
type Info = &'static [u8]
fn protocol_info(&self) -> Vec<Self::Info>
[src]
impl<A, B> UpgradeInfo for Selector<A, B> where
A: UpgradeInfo,
B: UpgradeInfo,
[src]
A: UpgradeInfo,
B: UpgradeInfo,