Trait ApplicationProtocols

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§