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>,
pub application_data: PayloadU16,
}
Fields§
§sni: Option<DNSName>
§version: ProtocolVersion
§cipher_suite: CipherSuite
§master_secret: PayloadU8
§extended_ms: bool
§client_cert_chain: Option<CertificatePayload>
§alpn: Option<PayloadU8>
§application_data: PayloadU16
Implementations§
source§impl ServerSessionValue
impl ServerSessionValue
pub fn new( sni: Option<&DNSName>, v: ProtocolVersion, cs: CipherSuite, ms: Vec<u8>, cert_chain: &Option<CertificatePayload>, alpn: Option<Vec<u8>>, application_data: Vec<u8> ) -> ServerSessionValue
pub fn set_extended_ms_used(&mut self)
Trait Implementations§
source§impl Codec for ServerSessionValue
impl Codec for ServerSessionValue
source§fn read(r: &mut Reader<'_>) -> Option<ServerSessionValue>
fn read(r: &mut Reader<'_>) -> Option<ServerSessionValue>
Decode yourself by fiddling with the
Reader
.
Return Some if it worked, None if not.source§fn get_encoding(&self) -> Vec<u8>
fn get_encoding(&self) -> Vec<u8>
Convenience function to get the results of
encode()
.source§fn read_bytes(bytes: &[u8]) -> Option<Self>
fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of
bytes
and
return it.Auto Trait Implementations§
impl RefUnwindSafe for ServerSessionValue
impl Send for ServerSessionValue
impl Sync for ServerSessionValue
impl Unpin for ServerSessionValue
impl UnwindSafe for ServerSessionValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more