pub struct InMemoryTapeStore { /* private fields */ }Expand description
In-memory tape store using scc::HashMap for concurrent access.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryTapeStore
impl Debug for InMemoryTapeStore
Source§impl Default for InMemoryTapeStore
impl Default for InMemoryTapeStore
Source§impl TapeStorePort for InMemoryTapeStore
impl TapeStorePort for InMemoryTapeStore
Source§fn append<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
kind: TapeEntryKind,
) -> Pin<Box<dyn Future<Output = Result<TapeEntry, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn append<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
kind: TapeEntryKind,
) -> Pin<Box<dyn Future<Output = Result<TapeEntry, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Append a new entry to the session’s tape.
Source§fn entries_since_last_handoff<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<TapeEntry>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn entries_since_last_handoff<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<TapeEntry>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return entries recorded since the most recent handoff. Read more
Source§fn search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
query: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<TapeSearchResult>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
query: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<TapeSearchResult>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Search the tape for entries matching a query string.
Auto Trait Implementations§
impl !Freeze for InMemoryTapeStore
impl RefUnwindSafe for InMemoryTapeStore
impl Send for InMemoryTapeStore
impl Sync for InMemoryTapeStore
impl Unpin for InMemoryTapeStore
impl UnsafeUnpin for InMemoryTapeStore
impl UnwindSafe for InMemoryTapeStore
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