pub struct NegotiationCache { /* private fields */ }
Expand description
Certificate type negotiation cache for performance optimization
Implementations§
Source§impl NegotiationCache
impl NegotiationCache
Sourcepub fn get(&self, key: u64) -> Option<&NegotiationResult>
pub fn get(&self, key: u64) -> Option<&NegotiationResult>
Get cached negotiation result
Sourcepub fn insert(&mut self, key: u64, result: NegotiationResult)
pub fn insert(&mut self, key: u64, result: NegotiationResult)
Cache a negotiation result
Trait Implementations§
Source§impl Debug for NegotiationCache
impl Debug for NegotiationCache
Auto Trait Implementations§
impl Freeze for NegotiationCache
impl RefUnwindSafe for NegotiationCache
impl Send for NegotiationCache
impl Sync for NegotiationCache
impl Unpin for NegotiationCache
impl UnwindSafe for NegotiationCache
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