[−][src]Trait libp2p::core::upgrade::ProtocolName
Types serving as protocol names.
Required methods
fn protocol_name(&self) -> &[u8]
The protocol name as bytes.
Implementors
impl<A, B> ProtocolName for EitherName<A, B> where
A: ProtocolName,
B: ProtocolName,
[src]
A: ProtocolName,
B: ProtocolName,
fn protocol_name(&self) -> &[u8]
[src]
impl<T> ProtocolName for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,