pub struct SqliteMemoryBackend { /* private fields */ }Implementations§
Source§impl SqliteMemoryBackend
impl SqliteMemoryBackend
pub fn new(path: impl AsRef<Path>) -> Result<SqliteMemoryBackend, MemoryError>
pub fn new_in_memory() -> Result<SqliteMemoryBackend, MemoryError>
Trait Implementations§
Source§impl Debug for SqliteMemoryBackend
impl Debug for SqliteMemoryBackend
Source§impl MemoryBackend for SqliteMemoryBackend
impl MemoryBackend for SqliteMemoryBackend
fn is_initialized<'a>( &'a self, session_id: &'a SessionId, ) -> Pin<Box<dyn Future<Output = Result<bool, MemoryError>> + Send + 'a>>
fn initialize_session_if_missing<'a>( &'a self, session_id: &'a SessionId, manifest: SessionManifest, feature_list: Vec<FeatureRecord>, initial_progress_entry: Option<ProgressEntry>, initial_checkpoint: Option<RunCheckpoint>, ) -> Pin<Box<dyn Future<Output = Result<bool, MemoryError>> + Send + 'a>>
fn load_bootstrap_state<'a>( &'a self, session_id: &'a SessionId, ) -> Pin<Box<dyn Future<Output = Result<BootstrapState, MemoryError>> + Send + 'a>>
fn save_manifest<'a>( &'a self, session_id: &'a SessionId, manifest: SessionManifest, ) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'a>>
fn append_progress_entry<'a>( &'a self, session_id: &'a SessionId, entry: ProgressEntry, ) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'a>>
fn replace_feature_list<'a>( &'a self, session_id: &'a SessionId, features: Vec<FeatureRecord>, ) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'a>>
fn update_feature_pass<'a>( &'a self, session_id: &'a SessionId, feature_id: &'a str, passes: bool, ) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'a>>
fn record_run_checkpoint<'a>( &'a self, session_id: &'a SessionId, checkpoint: RunCheckpoint, ) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'a>>
fn load_transcript_messages<'a>( &'a self, session_id: &'a SessionId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Message>, MemoryError>> + Send + 'a>>
fn append_transcript_messages<'a>( &'a self, session_id: &'a SessionId, messages: Vec<Message>, ) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'a>>
Auto Trait Implementations§
impl !Freeze for SqliteMemoryBackend
impl RefUnwindSafe for SqliteMemoryBackend
impl Send for SqliteMemoryBackend
impl Sync for SqliteMemoryBackend
impl Unpin for SqliteMemoryBackend
impl UnwindSafe for SqliteMemoryBackend
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