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 ServerSessionValuepub 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>
) -> ServerSessionValuepub 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 ServerSessionValuefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Codec for ServerSessionValue[src]
impl Codec for ServerSessionValuefn 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 ServerSessionValueimpl Sync for ServerSessionValue
impl Sync for ServerSessionValue