Struct rustls::internal::msgs::persist::ServerSessionValue [−][src]
pub struct ServerSessionValue { pub sni: Option<DNSName>, pub version: ProtocolVersion, pub cipher_suite: CipherSuite, pub master_secret: PayloadU8, pub extended_ms: bool, pub client_cert_chain: Option<CertificatePayload>, pub alpn: Option<PayloadU8>, }
Fields
sni: Option<DNSName>
version: ProtocolVersion
cipher_suite: CipherSuite
master_secret: PayloadU8
extended_ms: bool
client_cert_chain: Option<CertificatePayload>
alpn: Option<PayloadU8>
Implementations
impl ServerSessionValue
[src]
impl ServerSessionValue
[src]pub fn new(
sni: Option<&DNSName>,
v: ProtocolVersion,
cs: CipherSuite,
ms: Vec<u8>,
cert_chain: &Option<CertificatePayload>,
alpn: Option<Vec<u8>>
) -> ServerSessionValue
[src]
sni: Option<&DNSName>,
v: ProtocolVersion,
cs: CipherSuite,
ms: Vec<u8>,
cert_chain: &Option<CertificatePayload>,
alpn: Option<Vec<u8>>
) -> ServerSessionValue
pub fn set_extended_ms_used(&mut self)
[src]
Trait Implementations
impl Codec for ServerSessionValue
[src]
impl Codec for ServerSessionValue
[src]fn read(r: &mut Reader<'_>) -> Option<ServerSessionValue>
[src]
fn read(r: &mut Reader<'_>) -> Option<ServerSessionValue>
[src]Decode yourself by fiddling with the Reader
.
Return Some if it worked, None if not. Read more
fn get_encoding(&self) -> Vec<u8>
[src]
fn get_encoding(&self) -> Vec<u8>
[src]Convenience function to get the results of encode()
.