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[src]
type Info: ProtocolName + Clone[src]Opaque type representing a negotiable protocol.
type InfoIter: IntoIterator[src]
type InfoIter: IntoIterator[src]Iterator returned by protocol_info.
Required methods
fn protocol_info(&self) -> Self::InfoIter[src]
fn protocol_info(&self) -> Self::InfoIter[src]Returns the list of protocols that are supported. Used during the negotiation process.
Implementors
type Info = &'static [u8]type InfoIter = Once<<DeflateConfig as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<FloodsubProtocol as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<FloodsubRpc as UpgradeInfo>::Info>type Info = ProtocolIdtype InfoIter = Vec<<ProtocolConfig as UpgradeInfo>::Info, Global>type InfoIter = Once<<KademliaProtocolConfig as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<MplexConfig as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<NoiseConfig<IX, X25519, ()> as UpgradeInfo>::Info>Note: This is not currentlyy a standardised upgrade.
type Info = &'static [u8]type InfoIter = Once<<NoiseConfig<IX, X25519Spec, ()> as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<NoiseConfig<XX, X25519, ()> as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<NoiseConfig<XX, X25519Spec, ()> as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<Ping as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<PlainText1Config as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<PlainText2Config as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<YamuxConfig as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Once<<YamuxLocalConfig as UpgradeInfo>::Info>type Info = &'static [u8]type InfoIter = Empty<<DeniedUpgrade as UpgradeInfo>::Info>type Info = EitherName<<A as UpgradeInfo>::Info, <B as UpgradeInfo>::Info>type InfoIter = EitherIter<<<A as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter, <<B as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter>type Info = EitherName<<A as UpgradeInfo>::Info, <B as UpgradeInfo>::Info>type InfoIter = InfoIterChain<<<A as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter, <<B as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter>impl<P, C, R> UpgradeInfo for NoiseAuthenticated<P, C, R> where
C: Zeroize,
NoiseConfig<P, C, R>: UpgradeInfo, [src]
impl<P, C, R> UpgradeInfo for NoiseAuthenticated<P, C, R> where
C: Zeroize,
NoiseConfig<P, C, R>: UpgradeInfo, [src]type Info = <NoiseConfig<P, C, R> as UpgradeInfo>::Infotype InfoIter = <NoiseConfig<P, C, R> as UpgradeInfo>::InfoItertype Info = Ptype Info = &'static [u8]type InfoIter = Once<<NoiseConfig<IK, X25519, R> as UpgradeInfo>::Info>Note: This is not currently a standardised upgrade.
type Info = &'static [u8]type InfoIter = Once<<NoiseConfig<IK, X25519Spec, R> as UpgradeInfo>::Info>type Info = <T as UpgradeInfo>::Infotype InfoIter = Iter<<<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter>type Info = <TCodec as RequestResponseCodec>::Protocoltype InfoIter = IntoIter<[<RequestProtocol<TCodec> as UpgradeInfo>::Info; 2]>type Info = <TCodec as RequestResponseCodec>::Protocoltype InfoIter = IntoIter<[<ResponseProtocol<TCodec> as UpgradeInfo>::Info; 2]>type Info = <U as UpgradeInfo>::Infotype InfoIter = <U as UpgradeInfo>::InfoItertype Info = <U as UpgradeInfo>::Infotype InfoIter = <U as UpgradeInfo>::InfoItertype Info = <U as UpgradeInfo>::Infotype InfoIter = <U as UpgradeInfo>::InfoItertype Info = <U as UpgradeInfo>::Infotype InfoIter = <U as UpgradeInfo>::InfoIter