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>, }
Fields
sni: Option<DNSName>
version: ProtocolVersion
cipher_suite: CipherSuite
master_secret: PayloadU8
extended_ms: bool
client_cert_chain: Option<CertificatePayload>
Methods
impl ServerSessionValue
[src]
impl ServerSessionValue
pub fn new(
sni: Option<&DNSName>,
v: ProtocolVersion,
cs: CipherSuite,
ms: Vec<u8>,
cert_chain: &Option<CertificatePayload>
) -> ServerSessionValue
[src]
pub fn new(
sni: Option<&DNSName>,
v: ProtocolVersion,
cs: CipherSuite,
ms: Vec<u8>,
cert_chain: &Option<CertificatePayload>
) -> ServerSessionValue
pub fn set_extended_ms_used(&mut self)
[src]
pub fn set_extended_ms_used(&mut self)
Trait Implementations
impl Debug for ServerSessionValue
[src]
impl Debug for ServerSessionValue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Codec for ServerSessionValue
[src]
impl Codec for ServerSessionValue
fn encode(&self, bytes: &mut Vec<u8>)
[src]
fn encode(&self, bytes: &mut Vec<u8>)
Encode yourself by appending onto bytes
.
fn read(r: &mut Reader) -> Option<ServerSessionValue>
[src]
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>
[src]
fn get_encoding(&self) -> Vec<u8>
Convenience function to get the results of encode()
.
fn read_bytes(bytes: &[u8]) -> Option<Self>
[src]
fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of bytes
and return it. Read more
Auto Trait Implementations
impl Send for ServerSessionValue
impl Send for ServerSessionValue
impl Sync for ServerSessionValue
impl Sync for ServerSessionValue