Struct rustls::ClientSessionMemoryCache
source · [−]pub struct ClientSessionMemoryCache { /* private fields */ }
Expand description
An implementor of StoresClientSessions
that stores everything
in memory. It enforces a limit on the number of entries
to bound memory usage.
Implementations
sourceimpl ClientSessionMemoryCache
impl ClientSessionMemoryCache
sourcepub fn new(size: usize) -> Arc<ClientSessionMemoryCache>
pub fn new(size: usize) -> Arc<ClientSessionMemoryCache>
Make a new ClientSessionMemoryCache. size
is the
maximum number of stored sessions.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ClientSessionMemoryCache
impl Send for ClientSessionMemoryCache
impl Sync for ClientSessionMemoryCache
impl Unpin for ClientSessionMemoryCache
impl UnwindSafe for ClientSessionMemoryCache
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more