method TlsStream.version
"TLSv1.3" or "TLSv1.2".
Example:
use std.net { TlsStream }
fn modern(s: &TlsStream) -> bool {
s.version() == "TLSv1.3"
}pub(api) fn version() -> strSince. 1.0.0-beta
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/net/tls.oxl:362