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§
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Resumption
impl Debug for Resumption
Auto Trait Implementations§
impl Freeze for Resumption
impl !RefUnwindSafe for Resumption
impl Send for Resumption
impl Sync for Resumption
impl Unpin for Resumption
impl !UnwindSafe for Resumption
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)