pub struct ResumptionSession(/* private fields */);Expand description
An opaque, resumable TLS session captured from a completed client handshake.
Obtain one with Connection::take_session after the handshake finishes,
persist it, and prime a later connection to the same server by passing it
to super::ConfigBuilder::resumption_session. A TLS 1.3 session resumes
via PSK (RFC 8446 §2.2); a TLS 1.2 session via an RFC 5077 ticket. The
contents are version-specific and deliberately not inspectable.
Trait Implementations§
Source§impl Clone for ResumptionSession
impl Clone for ResumptionSession
Source§fn clone(&self) -> ResumptionSession
fn clone(&self) -> ResumptionSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResumptionSession
impl RefUnwindSafe for ResumptionSession
impl Send for ResumptionSession
impl Sync for ResumptionSession
impl Unpin for ResumptionSession
impl UnsafeUnpin for ResumptionSession
impl UnwindSafe for ResumptionSession
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