Trait libp2p::core::UpgradeInfo [−][src]
pub trait UpgradeInfo { type Info: ProtocolName + Clone; type InfoIter: IntoIterator; fn protocol_info(&self) -> Self::InfoIter; }
Expand description
Common trait for upgrades that can be applied on inbound substreams, outbound substreams, or both.
Associated Types
type Info: ProtocolName + Clone
type Info: ProtocolName + Clone
Opaque type representing a negotiable protocol.
type InfoIter: IntoIterator
type InfoIter: IntoIterator
Iterator returned by protocol_info
.
Required methods
fn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::InfoIter
Returns the list of protocols that are supported. Used during the negotiation process.
Implementors
impl<P, C, R> UpgradeInfo for NoiseAuthenticated<P, C, R> where
C: Zeroize,
NoiseConfig<P, C, R>: UpgradeInfo,