pingora_core::protocols

Trait Ssl

Source
pub trait Ssl {
    // Provided methods
    fn get_ssl(&self) -> Option<&TlsRef> { ... }
    fn get_ssl_digest(&self) -> Option<Arc<SslDigest>> { ... }
    fn selected_alpn_proto(&self) -> Option<ALPN> { ... }
}
Expand description

Interface to get TLS info

Provided Methods§

Source

fn get_ssl(&self) -> Option<&TlsRef>

Return the TLS info if the connection is over TLS

Source

fn get_ssl_digest(&self) -> Option<Arc<SslDigest>>

Return the tls::SslDigest for logging

Source

fn selected_alpn_proto(&self) -> Option<ALPN>

Return selected ALPN if any

Implementations on Foreign Types§

Source§

impl Ssl for Mock

Source§

impl Ssl for DuplexStream

Source§

impl<T> Ssl for Cursor<T>

Implementors§

Source§

impl Ssl for Stream

Source§

impl<S> Ssl for SslStream<S>