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
sourceimpl 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
sourceimpl Codec for ServerSessionValue
impl Codec for ServerSessionValue
sourcefn 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. Read moresourcefn get_encoding(&self) -> Vec<u8>
fn get_encoding(&self) -> Vec<u8>
Convenience function to get the results of
encode()
.sourcefn 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. Read moresourceimpl Debug for ServerSessionValue
impl Debug for ServerSessionValue
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more