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.

Loading content...

Required methods

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

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

Loading content...

Implementors

impl UpgradeInfo for DummyUpgrader[src]

type Info = &'static [u8]

impl<A, B> UpgradeInfo for Selector<A, B> where
    A: UpgradeInfo,
    B: UpgradeInfo
[src]

type Info = EitherName<A::Info, B::Info>

Loading content...