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
Available on crate feature std
only.
pub fn in_memory_sessions(num: usize) -> Self
std
only.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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes