Trait libp2p::core::UpgradeInfo [−][src]
Common trait for upgrades that can be applied on inbound substreams, outbound substreams, or both.
Associated Types
type Info: ProtocolName + Clone
[src]
Opaque type representing a negotiable protocol.
type InfoIter: IntoIterator
[src]
Iterator returned by protocol_info
.
Required methods
pub fn protocol_info(&self) -> Self::InfoIter
[src]
Returns the list of protocols that are supported. Used during the negotiation process.
Implementors
impl UpgradeInfo for DeniedUpgrade
[src]
type Info = &'static [u8]
type InfoIter = Empty<<DeniedUpgrade as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <DeniedUpgrade as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for DeflateConfig
[src]
type Info = &'static [u8]
type InfoIter = Once<<DeflateConfig as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <DeflateConfig as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for FloodsubProtocol
[src]
type Info = &'static [u8]
type InfoIter = Once<<FloodsubProtocol as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <FloodsubProtocol as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for FloodsubRpc
[src]
type Info = &'static [u8]
type InfoIter = Once<<FloodsubRpc as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <FloodsubRpc as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for ProtocolConfig
[src]
type Info = Cow<'static, [u8]>
type InfoIter = Once<<ProtocolConfig as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <ProtocolConfig as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for KademliaProtocolConfig
[src]
type Info = Cow<'static, [u8]>
type InfoIter = Once<<KademliaProtocolConfig as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <KademliaProtocolConfig as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for MplexConfig
[src]
type Info = &'static [u8]
type InfoIter = Once<<MplexConfig as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <MplexConfig as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for NoiseConfig<IX, X25519, ()>
[src]
type Info = &'static [u8]
type InfoIter = Once<<NoiseConfig<IX, X25519, ()> as UpgradeInfo>::Info>
pub fn protocol_info(
&self
) -> <NoiseConfig<IX, X25519, ()> as UpgradeInfo>::InfoIter
[src]
&self
) -> <NoiseConfig<IX, X25519, ()> as UpgradeInfo>::InfoIter
impl UpgradeInfo for NoiseConfig<IX, X25519Spec, ()>
[src]
Note: This is not currentlyy a standardised upgrade.
type Info = &'static [u8]
type InfoIter = Once<<NoiseConfig<IX, X25519Spec, ()> as UpgradeInfo>::Info>
pub fn protocol_info(
&self
) -> <NoiseConfig<IX, X25519Spec, ()> as UpgradeInfo>::InfoIter
[src]
&self
) -> <NoiseConfig<IX, X25519Spec, ()> as UpgradeInfo>::InfoIter
impl UpgradeInfo for NoiseConfig<XX, X25519, ()>
[src]
type Info = &'static [u8]
type InfoIter = Once<<NoiseConfig<XX, X25519, ()> as UpgradeInfo>::Info>
pub fn protocol_info(
&self
) -> <NoiseConfig<XX, X25519, ()> as UpgradeInfo>::InfoIter
[src]
&self
) -> <NoiseConfig<XX, X25519, ()> as UpgradeInfo>::InfoIter
impl UpgradeInfo for NoiseConfig<XX, X25519Spec, ()>
[src]
type Info = &'static [u8]
type InfoIter = Once<<NoiseConfig<XX, X25519Spec, ()> as UpgradeInfo>::Info>
pub fn protocol_info(
&self
) -> <NoiseConfig<XX, X25519Spec, ()> as UpgradeInfo>::InfoIter
[src]
&self
) -> <NoiseConfig<XX, X25519Spec, ()> as UpgradeInfo>::InfoIter
impl UpgradeInfo for Ping
[src]
type Info = &'static [u8]
type InfoIter = Once<<Ping as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <Ping as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for PlainText1Config
[src]
type Info = &'static [u8]
type InfoIter = Once<<PlainText1Config as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <PlainText1Config as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for PlainText2Config
[src]
type Info = &'static [u8]
type InfoIter = Once<<PlainText2Config as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <PlainText2Config as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for Config
[src]
type Info = &'static [u8]
type InfoIter = Once<<Config as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <Config as UpgradeInfo>::InfoIter
[src]
impl UpgradeInfo for LocalConfig
[src]
type Info = &'static [u8]
type InfoIter = Once<<LocalConfig as UpgradeInfo>::Info>
pub fn protocol_info(&self) -> <LocalConfig as UpgradeInfo>::InfoIter
[src]
impl<A, B> UpgradeInfo for EitherUpgrade<A, B> where
A: UpgradeInfo,
B: UpgradeInfo,
[src]
A: UpgradeInfo,
B: UpgradeInfo,
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>
pub fn protocol_info(&self) -> <EitherUpgrade<A, B> as UpgradeInfo>::InfoIter
[src]
impl<A, B> UpgradeInfo for SelectUpgrade<A, B> where
A: UpgradeInfo,
B: UpgradeInfo,
[src]
A: UpgradeInfo,
B: UpgradeInfo,
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>
pub fn protocol_info(&self) -> <SelectUpgrade<A, B> as UpgradeInfo>::InfoIter
[src]
impl<F> UpgradeInfo for SimpleProtocol<F>
[src]
impl<P, C, R> UpgradeInfo for NoiseAuthenticated<P, C, R> where
C: Zeroize,
NoiseConfig<P, C, R>: UpgradeInfo,
[src]
C: Zeroize,
NoiseConfig<P, C, R>: UpgradeInfo,
type Info = <NoiseConfig<P, C, R> as UpgradeInfo>::Info
type InfoIter = <NoiseConfig<P, C, R> as UpgradeInfo>::InfoIter
pub fn protocol_info(
&self
) -> <NoiseAuthenticated<P, C, R> as UpgradeInfo>::InfoIter
[src]
&self
) -> <NoiseAuthenticated<P, C, R> as UpgradeInfo>::InfoIter
impl<P, F> UpgradeInfo for FromFnUpgrade<P, F> where
P: ProtocolName + Clone,
[src]
P: ProtocolName + Clone,
type Info = P
type InfoIter = Once<P>
pub fn protocol_info(&self) -> <FromFnUpgrade<P, F> as UpgradeInfo>::InfoIter
[src]
impl<R> UpgradeInfo for NoiseConfig<IK, X25519, R>
[src]
type Info = &'static [u8]
type InfoIter = Once<<NoiseConfig<IK, X25519, R> as UpgradeInfo>::Info>
pub fn protocol_info(
&self
) -> <NoiseConfig<IK, X25519, R> as UpgradeInfo>::InfoIter
[src]
&self
) -> <NoiseConfig<IK, X25519, R> as UpgradeInfo>::InfoIter
impl<R> UpgradeInfo for NoiseConfig<IK, X25519Spec, R>
[src]
Note: This is not currently a standardised upgrade.
type Info = &'static [u8]
type InfoIter = Once<<NoiseConfig<IK, X25519Spec, R> as UpgradeInfo>::Info>
pub fn protocol_info(
&self
) -> <NoiseConfig<IK, X25519Spec, R> as UpgradeInfo>::InfoIter
[src]
&self
) -> <NoiseConfig<IK, X25519Spec, R> as UpgradeInfo>::InfoIter
impl<T> UpgradeInfo for OptionalUpgrade<T> where
T: UpgradeInfo,
[src]
T: UpgradeInfo,
type Info = <T as UpgradeInfo>::Info
type InfoIter = Iter<<<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter>
pub fn protocol_info(&self) -> <OptionalUpgrade<T> as UpgradeInfo>::InfoIter
[src]
impl<TCodec> UpgradeInfo for RequestProtocol<TCodec> where
TCodec: RequestResponseCodec,
[src]
TCodec: RequestResponseCodec,
type Info = <TCodec as RequestResponseCodec>::Protocol
type InfoIter = IntoIter<[<RequestProtocol<TCodec> as UpgradeInfo>::Info; 2]>
pub fn protocol_info(
&self
) -> <RequestProtocol<TCodec> as UpgradeInfo>::InfoIter
[src]
&self
) -> <RequestProtocol<TCodec> as UpgradeInfo>::InfoIter
impl<TCodec> UpgradeInfo for ResponseProtocol<TCodec> where
TCodec: RequestResponseCodec,
[src]
TCodec: RequestResponseCodec,
type Info = <TCodec as RequestResponseCodec>::Protocol
type InfoIter = IntoIter<[<ResponseProtocol<TCodec> as UpgradeInfo>::Info; 2]>
pub fn protocol_info(
&self
) -> <ResponseProtocol<TCodec> as UpgradeInfo>::InfoIter
[src]
&self
) -> <ResponseProtocol<TCodec> as UpgradeInfo>::InfoIter
impl<U, F> UpgradeInfo for MapInboundUpgrade<U, F> where
U: UpgradeInfo,
[src]
U: UpgradeInfo,
type Info = <U as UpgradeInfo>::Info
type InfoIter = <U as UpgradeInfo>::InfoIter
pub fn protocol_info(
&self
) -> <MapInboundUpgrade<U, F> as UpgradeInfo>::InfoIter
[src]
&self
) -> <MapInboundUpgrade<U, F> as UpgradeInfo>::InfoIter
impl<U, F> UpgradeInfo for MapInboundUpgradeErr<U, F> where
U: UpgradeInfo,
[src]
U: UpgradeInfo,
type Info = <U as UpgradeInfo>::Info
type InfoIter = <U as UpgradeInfo>::InfoIter
pub fn protocol_info(
&self
) -> <MapInboundUpgradeErr<U, F> as UpgradeInfo>::InfoIter
[src]
&self
) -> <MapInboundUpgradeErr<U, F> as UpgradeInfo>::InfoIter
impl<U, F> UpgradeInfo for MapOutboundUpgrade<U, F> where
U: UpgradeInfo,
[src]
U: UpgradeInfo,
type Info = <U as UpgradeInfo>::Info
type InfoIter = <U as UpgradeInfo>::InfoIter
pub fn protocol_info(
&self
) -> <MapOutboundUpgrade<U, F> as UpgradeInfo>::InfoIter
[src]
&self
) -> <MapOutboundUpgrade<U, F> as UpgradeInfo>::InfoIter
impl<U, F> UpgradeInfo for MapOutboundUpgradeErr<U, F> where
U: UpgradeInfo,
[src]
U: UpgradeInfo,
type Info = <U as UpgradeInfo>::Info
type InfoIter = <U as UpgradeInfo>::InfoIter
pub fn protocol_info(
&self
) -> <MapOutboundUpgradeErr<U, F> as UpgradeInfo>::InfoIter
[src]
&self
) -> <MapOutboundUpgradeErr<U, F> as UpgradeInfo>::InfoIter