Skip to main content

Ssl

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Ssl for DuplexStream

Source§

impl Ssl for Mock

Source§

impl Ssl for UnixStream

Available on Unix only.
Source§

impl<T> Ssl for Cursor<T>

Implementors§

Source§

impl Ssl for Stream

Source§

impl<S> Ssl for SslStream<S>

Available on non-crate feature any_tls only.