Trait pingora_core::protocols::Ssl

source ·
pub trait Ssl {
    // Provided methods
    fn get_ssl(&self) -> Option<&SslRef> { ... }
    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<&SslRef>

Return the TLS info if the connection is over TLS

source

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

Return the ssl::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<T> Ssl for SslStream<T>