pub struct MemorySessionStore { /* private fields */ }Expand description
A SessionStore in memory: a few tickets per server name, most recent first.
Implementations§
Trait Implementations§
Source§impl Debug for MemorySessionStore
impl Debug for MemorySessionStore
Source§impl Default for MemorySessionStore
impl Default for MemorySessionStore
Source§impl SessionStore for MemorySessionStore
impl SessionStore for MemorySessionStore
Source§fn put(&self, server_name: &str, session: Tls13Session)
fn put(&self, server_name: &str, session: Tls13Session)
Keeps
session, received from the server configured as server_name.Source§fn take(&self, server_name: &str) -> Option<Tls13Session>
fn take(&self, server_name: &str) -> Option<Tls13Session>
Takes the most recent session for
server_name, if there is one.Source§fn put_dtls12(&self, server_name: &str, session: Dtls12Session)
fn put_dtls12(&self, server_name: &str, session: Dtls12Session)
Keeps a DTLS 1.2 session made with the server configured as
server_name.Source§fn take_dtls12(&self, server_name: &str) -> Option<Dtls12Session>
fn take_dtls12(&self, server_name: &str) -> Option<Dtls12Session>
Takes the most recent DTLS 1.2 session for
server_name. A session id session that
is resumed is put back; a ticket is offered once.Source§fn forget_dtls12(&self, server_name: &str, session_id: &[u8])
fn forget_dtls12(&self, server_name: &str, session_id: &[u8])
Forgets the DTLS 1.2 session
session_id of server_name: its connection failed.Auto Trait Implementations§
impl !Freeze for MemorySessionStore
impl Forget for MemorySessionStore
impl Move for MemorySessionStore
impl RefUnwindSafe for MemorySessionStorewhere
Mutex<HashMap<String, VecDeque<Tls13Session>>>: RefUnwindSafe,
Mutex<HashMap<String, VecDeque<Dtls12Session>>>: RefUnwindSafe,
impl Send for MemorySessionStore
impl Sync for MemorySessionStore
impl Unpin for MemorySessionStore
impl UnsafeUnpin for MemorySessionStorewhere
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, VecDeque<Tls13Session>)>: UnsafeUnpin,
PhantomData<(String, VecDeque<Dtls12Session>)>: UnsafeUnpin,
impl UnwindSafe for MemorySessionStorewhere
Mutex<HashMap<String, VecDeque<Tls13Session>>>: UnwindSafe,
Mutex<HashMap<String, VecDeque<Dtls12Session>>>: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.