pub struct Resumption { /* private fields */ }Expand description
Configuration for how/when a client is allowed to resume a previous session.
Implementations§
Source§impl Resumption
impl Resumption
Sourcepub fn in_memory_sessions(num: usize) -> Resumption
pub fn in_memory_sessions(num: usize) -> Resumption
Create a new Resumption that stores data for the given number of sessions in memory.
This is the default Resumption choice, and enables resuming a TLS 1.2 session with
a session id or RFC 5077 ticket.
Sourcepub fn store(store: Arc<dyn ClientSessionStore>) -> Resumption
pub fn store(store: Arc<dyn ClientSessionStore>) -> Resumption
Use a custom ClientSessionStore implementation to store sessions.
By default, enables resuming a TLS 1.2 session with a session id or RFC 5077 ticket.
Sourcepub fn disabled() -> Resumption
pub fn disabled() -> Resumption
Disable all use of session resumption.
Sourcepub fn tls12_resumption(self, tls12: Tls12Resumption) -> Resumption
pub fn tls12_resumption(self, tls12: Tls12Resumption) -> Resumption
Configure whether TLS 1.2 sessions may be resumed, and by what mechanism.
This is meaningless if you’ve disabled resumption entirely, which is the case in no-std
contexts.
Trait Implementations§
Source§impl Clone for Resumption
impl Clone for Resumption
Source§fn clone(&self) -> Resumption
fn clone(&self) -> Resumption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Resumption
impl Debug for Resumption
Source§impl Default for Resumption
impl Default for Resumption
Source§fn default() -> Resumption
fn default() -> Resumption
Create an in-memory session store resumption with up to 256 server names, allowing a TLS 1.2 session to resume with a session id or RFC 5077 ticket.