Struct rustls::client::Resumption
source · [−]pub struct Resumption { /* private fields */ }
Expand description
Configuration for how/when a client is allowed to resume a previous session.
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Clone for Resumption
impl Clone for Resumption
sourcefn clone(&self) -> Resumption
fn clone(&self) -> Resumption
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Resumption
impl Debug for Resumption
sourceimpl Default for Resumption
impl Default for Resumption
Auto Trait Implementations
impl !RefUnwindSafe for Resumption
impl Send for Resumption
impl Sync for Resumption
impl Unpin for Resumption
impl !UnwindSafe for Resumption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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