pub struct MemoryConversationStore { /* private fields */ }Implementations§
Source§impl MemoryConversationStore
impl MemoryConversationStore
pub fn new(backend: Arc<dyn MemoryBackend>) -> MemoryConversationStore
pub fn backend(&self) -> Arc<dyn MemoryBackend>
Trait Implementations§
Source§impl Clone for MemoryConversationStore
impl Clone for MemoryConversationStore
Source§fn clone(&self) -> MemoryConversationStore
fn clone(&self) -> MemoryConversationStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConversationStore for MemoryConversationStore
impl ConversationStore for MemoryConversationStore
fn load_messages<'a>( &'a self, session_id: &'a SessionId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Message>, ChatError>> + Send + 'a>>
fn append_messages<'a>( &'a self, session_id: &'a SessionId, messages: Vec<Message>, ) -> Pin<Box<dyn Future<Output = Result<(), ChatError>> + Send + 'a>>
Auto Trait Implementations§
impl Freeze for MemoryConversationStore
impl !RefUnwindSafe for MemoryConversationStore
impl Send for MemoryConversationStore
impl Sync for MemoryConversationStore
impl Unpin for MemoryConversationStore
impl !UnwindSafe for MemoryConversationStore
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