pub struct Tls12ClientSessionValue {
pub session_id: SessionID,
pub common: ClientSessionCommon,
/* private fields */
}
Fields
session_id: SessionID
common: ClientSessionCommon
Implementations
sourceimpl Tls12ClientSessionValue
impl Tls12ClientSessionValue
pub fn new(
suite: &'static Tls12CipherSuite,
session_id: SessionID,
ticket: Vec<u8>,
master_secret: Vec<u8>,
server_cert_chain: Vec<Certificate>,
time_now: TimeBase,
lifetime_secs: u32,
extended_ms: bool
) -> Self
sourcepub fn get_encoding(&self) -> Vec<u8>
pub fn get_encoding(&self) -> Vec<u8>
Inherent implementation of the Codec::get_encoding()
method.
(See read()
for why this is inherent here.)
pub fn take_ticket(&mut self) -> Vec<u8>
pub fn extended_ms(&self) -> bool
pub fn suite(&self) -> &'static Tls12CipherSuite
Methods from Deref<Target = ClientSessionCommon>
Trait Implementations
sourceimpl Debug for Tls12ClientSessionValue
impl Debug for Tls12ClientSessionValue
sourceimpl Deref for Tls12ClientSessionValue
impl Deref for Tls12ClientSessionValue
type Target = ClientSessionCommon
type Target = ClientSessionCommon
The resulting type after dereferencing.
sourceimpl From<Tls12ClientSessionValue> for ClientSessionValue
impl From<Tls12ClientSessionValue> for ClientSessionValue
sourcefn from(v: Tls12ClientSessionValue) -> Self
fn from(v: Tls12ClientSessionValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Tls12ClientSessionValue
impl Send for Tls12ClientSessionValue
impl Sync for Tls12ClientSessionValue
impl Unpin for Tls12ClientSessionValue
impl !UnwindSafe for Tls12ClientSessionValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more