Struct rustls::internal::msgs::persist::ClientSessionValue
[−]
[src]
pub struct ClientSessionValue { pub version: ProtocolVersion, pub cipher_suite: CipherSuite, pub session_id: SessionID, pub ticket: PayloadU16, pub master_secret: PayloadU8, pub epoch: u64, pub lifetime: u32, pub age_add: u32, pub extended_ms: bool, }
Fields
version: ProtocolVersion
cipher_suite: CipherSuite
session_id: SessionID
ticket: PayloadU16
master_secret: PayloadU8
epoch: u64
lifetime: u32
age_add: u32
extended_ms: bool
Methods
impl ClientSessionValue
[src]
fn new(v: ProtocolVersion,
cs: CipherSuite,
sessid: &SessionID,
ticket: Vec<u8>,
ms: Vec<u8>)
-> ClientSessionValue
cs: CipherSuite,
sessid: &SessionID,
ticket: Vec<u8>,
ms: Vec<u8>)
-> ClientSessionValue
fn set_extended_ms_used(&mut self)
fn set_times(&mut self,
receipt_time_secs: u64,
lifetime_secs: u32,
age_add: u32)
receipt_time_secs: u64,
lifetime_secs: u32,
age_add: u32)
fn has_expired(&self, time_now: u64) -> bool
fn get_obfuscated_ticket_age(&self, time_now: u64) -> u32
fn take_ticket(&mut self) -> Vec<u8>
Trait Implementations
impl Debug for ClientSessionValue
[src]
impl Codec for ClientSessionValue
[src]
fn encode(&self, bytes: &mut Vec<u8>)
Encode yourself by appending onto bytes
.
fn read(r: &mut Reader) -> Option<ClientSessionValue>
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