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