pub trait ApplicationProtocols: Clone + Debug + Send + Sync {
    // Required method
    fn alpn_name(&self) -> &'static [u8] ;
}
Expand description

A collection of supported protocols for a network service.

Required Methods§

source

fn alpn_name(&self) -> &'static [u8]

Returns the identifier to use in ALPN during TLS negotiation.

Object Safety§

This trait is not object safe.

Implementors§