pub struct FileRecall { /* private fields */ }Implementations§
Source§impl FileRecall
impl FileRecall
Trait Implementations§
Source§impl RecallStore for FileRecall
impl RecallStore for FileRecall
Source§fn ensure_session<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
owner: &'life1 str,
session_id: &'life2 str,
meta: &'life3 SessionMeta,
) -> Pin<Box<dyn Future<Output = Result<(), RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn ensure_session<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
owner: &'life1 str,
session_id: &'life2 str,
meta: &'life3 SessionMeta,
) -> Pin<Box<dyn Future<Output = Result<(), RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Create/refresh the session row (idempotent).
Source§fn append<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
owner: &'life1 str,
session_id: &'life2 str,
msg: &'life3 RecallMessage,
) -> Pin<Box<dyn Future<Output = Result<i64, RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn append<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
owner: &'life1 str,
session_id: &'life2 str,
msg: &'life3 RecallMessage,
) -> Pin<Box<dyn Future<Output = Result<i64, RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Append one message; returns the assigned id.
Source§fn search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
owner: &'life1 str,
query: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionHit>, RecallError>> + 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,
owner: &'life1 str,
query: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionHit>, RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Discovery: top sessions matching
query, with snippet + bookends.Source§fn scroll<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
owner: &'life1 str,
session_id: &'life2 str,
around: i64,
window: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RecallMessage>, RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn scroll<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
owner: &'life1 str,
session_id: &'life2 str,
around: i64,
window: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RecallMessage>, RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Scroll: messages with id in
[around - window, around + window].Source§fn recent<'life0, 'life1, 'async_trait>(
&'life0 self,
owner: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionMeta>, RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recent<'life0, 'life1, 'async_trait>(
&'life0 self,
owner: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionMeta>, RecallError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Browse: the owner’s most recent sessions, newest first.
Auto Trait Implementations§
impl !Freeze for FileRecall
impl RefUnwindSafe for FileRecall
impl Send for FileRecall
impl Sync for FileRecall
impl Unpin for FileRecall
impl UnsafeUnpin for FileRecall
impl UnwindSafe for FileRecall
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