pub struct ConversationStore { /* private fields */ }Expand description
Thread-safe in-memory store keyed by response id.
Uses Mutex rather than RwLock: every get mutates the LRU order, so
there is no read-only path that could benefit from shared access.
Implementations§
Trait Implementations§
Source§impl Debug for ConversationStore
impl Debug for ConversationStore
Source§impl Default for ConversationStore
impl Default for ConversationStore
Source§fn default() -> ConversationStore
fn default() -> ConversationStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ConversationStore
impl RefUnwindSafe for ConversationStore
impl Send for ConversationStore
impl Sync for ConversationStore
impl Unpin for ConversationStore
impl UnsafeUnpin for ConversationStore
impl UnwindSafe for ConversationStore
Blanket Implementations§
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