pub struct Resumption { /* private fields */ }展开描述
Configuration 用于 how/when 一个 client is allowed 到 resume 一个 previous session.
实现§
Source§impl Resumption
impl Resumption
Sourcepub fn in_memory_sessions(num: usize) -> Self
pub fn in_memory_sessions(num: usize) -> Self
创建一个 new Resumption that stores data 用于 the given number of sessions in memory.
This is 默认 Resumption choice, 并 enables resuming 一个 TLS 1.2 session with
一个 session id 或 RFC 5077 票据
Sourcepub fn store(store: Arc<dyn ClientSessionStore>) -> Self
pub fn store(store: Arc<dyn ClientSessionStore>) -> Self
使用自定义 ClientSessionStore 实现来存储会话
默认下,启用恢复 TLS 1.2 session with 一个 session id 或 RFC 5077 票据
Sourcepub fn tls12_resumption(self, tls12: Tls12Resumption) -> Self
pub fn tls12_resumption(self, tls12: Tls12Resumption) -> Self
配置是否 TLS 1.2 会话可被恢复,以及使用什么机制
This is meaningless if you’ve disabled resumption entirely, which 是 case in no-std
contexts.
Trait 实现§
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)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for Resumption
impl Debug for Resumption
Source§impl Default for Resumption
impl Default for Resumption
自动 Trait 实现§
impl Freeze for Resumption
impl !RefUnwindSafe for Resumption
impl Send for Resumption
impl Sync for Resumption
impl Unpin for Resumption
impl UnsafeUnpin for Resumption
impl !UnwindSafe for Resumption
Blanket 实现§
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 从 an owned value. 更多信息