[][src]Trait libp2p::core::upgrade::ProtocolName

pub trait ProtocolName {
    fn protocol_name(&self) -> &[u8];
}

Types serving as protocol names.

Required methods

fn protocol_name(&self) -> &[u8]

The protocol name as bytes.

Loading content...

Implementors

impl<A, B> ProtocolName for EitherName<A, B> where
    A: ProtocolName,
    B: ProtocolName
[src]

impl<T> ProtocolName for T where
    T: AsRef<[u8]>, 
[src]

Loading content...