Struct rustls::client::ClientSessionMemoryCache
source · [−]pub struct ClientSessionMemoryCache { /* private fields */ }
Expand description
An implementer of ClientSessionStore
that stores everything
in memory.
It enforces a limit on the number of entries to bound memory usage.
Implementations
Trait Implementations
sourceimpl ClientSessionStore for ClientSessionMemoryCache
impl ClientSessionStore for ClientSessionMemoryCache
sourcefn set_kx_hint(&self, server_name: &ServerName, group: NamedGroup)
fn set_kx_hint(&self, server_name: &ServerName, group: NamedGroup)
Remember what
NamedGroup
the given server chose.sourcefn kx_hint(&self, server_name: &ServerName) -> Option<NamedGroup>
fn kx_hint(&self, server_name: &ServerName) -> Option<NamedGroup>
This should return the value most recently passed to
set_kx_hint
for the given server_name
. Read moresourcefn set_tls12_session(
&self,
_server_name: &ServerName,
_value: Tls12ClientSessionValue
)
fn set_tls12_session(
&self,
_server_name: &ServerName,
_value: Tls12ClientSessionValue
)
Remember a TLS1.2 session. Read more
sourcefn tls12_session(
&self,
_server_name: &ServerName
) -> Option<Tls12ClientSessionValue>
fn tls12_session(
&self,
_server_name: &ServerName
) -> Option<Tls12ClientSessionValue>
Get the most recently saved TLS1.2 session for
server_name
provided to set_tls12_session
.sourcefn remove_tls12_session(&self, _server_name: &ServerName)
fn remove_tls12_session(&self, _server_name: &ServerName)
Remove and forget any saved TLS1.2 session for
server_name
.sourcefn insert_tls13_ticket(
&self,
server_name: &ServerName,
value: Tls13ClientSessionValue
)
fn insert_tls13_ticket(
&self,
server_name: &ServerName,
value: Tls13ClientSessionValue
)
Remember a TLS1.3 ticket that might be retrieved later from
take_tls13_ticket
, allowing
resumption of this session. Read moresourcefn take_tls13_ticket(
&self,
server_name: &ServerName
) -> Option<Tls13ClientSessionValue>
fn take_tls13_ticket(
&self,
server_name: &ServerName
) -> Option<Tls13ClientSessionValue>
Return a TLS1.3 ticket previously provided to
add_tls13_ticket
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ClientSessionMemoryCache
impl Send for ClientSessionMemoryCache
impl Sync for ClientSessionMemoryCache
impl Unpin for ClientSessionMemoryCache
impl UnwindSafe for ClientSessionMemoryCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more