pub struct MemoryCheckpointStore { /* private fields */ }Expand description
In-memory checkpoint store for testing.
Implementations§
Trait Implementations§
Source§impl CheckpointStore for MemoryCheckpointStore
impl CheckpointStore for MemoryCheckpointStore
Source§fn save_sync(&self, agent_key: &str, field: &str, value: Value)
fn save_sync(&self, agent_key: &str, field: &str, value: Value)
Save a field value synchronously (blocks on async).
Source§fn load_sync(&self, agent_key: &str, field: &str) -> Option<Value>
fn load_sync(&self, agent_key: &str, field: &str) -> Option<Value>
Load a field value synchronously.
Source§fn load_all_sync(&self, agent_key: &str) -> HashMap<String, Value>
fn load_all_sync(&self, agent_key: &str) -> HashMap<String, Value>
Load all fields for an agent.
Source§fn save_all_sync(&self, agent_key: &str, fields: &HashMap<String, Value>)
fn save_all_sync(&self, agent_key: &str, fields: &HashMap<String, Value>)
Save all fields atomically.
Source§fn exists_sync(&self, agent_key: &str) -> bool
fn exists_sync(&self, agent_key: &str) -> bool
Check if any checkpoint exists for an agent.
Source§impl Default for MemoryCheckpointStore
impl Default for MemoryCheckpointStore
Source§fn default() -> MemoryCheckpointStore
fn default() -> MemoryCheckpointStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryCheckpointStore
impl RefUnwindSafe for MemoryCheckpointStore
impl Send for MemoryCheckpointStore
impl Sync for MemoryCheckpointStore
impl Unpin for MemoryCheckpointStore
impl UnsafeUnpin for MemoryCheckpointStore
impl UnwindSafe for MemoryCheckpointStore
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