pub struct Resumption {
pub(super) store: Arc<dyn ClientSessionStore>,
pub(super) tls12_resumption: Tls12Resumption,
}
Expand description
Configuration for how/when a client is allowed to resume a previous session.
Fields§
§store: Arc<dyn ClientSessionStore>
How we store session data or tickets. The default is to use an in-memory super::handy::ClientSessionMemoryCache.
tls12_resumption: Tls12Resumption
What mechanism is used for resuming a TLS 1.2 session.
Implementations§
Source§impl Resumption
impl Resumption
Sourcepub fn in_memory_sessions(num: usize) -> Self
pub fn in_memory_sessions(num: usize) -> Self
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>) -> Self
pub fn store(store: Arc<dyn ClientSessionStore>) -> Self
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 tls12_resumption(self, tls12: Tls12Resumption) -> Self
pub fn tls12_resumption(self, tls12: Tls12Resumption) -> Self
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 more