pub struct AuraMemoryStore { /* private fields */ }Expand description
AuraMemoryStore — delegates to the Aura daemon when running, falls back to InMemoryStore otherwise.
Implementations§
Source§impl AuraMemoryStore
impl AuraMemoryStore
pub fn new() -> Self
Sourcepub fn store_kv(&self, key: &str, value: &str) -> bool
pub fn store_kv(&self, key: &str, value: &str) -> bool
Store a key-value pair. Uses Aura when available, fallback otherwise.
Sourcepub fn get_kv(&self, key: &str) -> Option<String>
pub fn get_kv(&self, key: &str) -> Option<String>
Retrieve a value by key. Uses Aura when available, fallback otherwise.
Trait Implementations§
Source§impl Default for AuraMemoryStore
impl Default for AuraMemoryStore
fn store( &self, scope: MemoryScope, key: &str, value: &[u8], source_agent: u32, ) -> Result<(), MemoryError>
fn query(&self, key: &str) -> Result<Option<MemoryEntry>, MemoryError>
fn archive_session(&self, session_id: &str) -> Result<(), MemoryError>
Auto Trait Implementations§
impl Freeze for AuraMemoryStore
impl RefUnwindSafe for AuraMemoryStore
impl Send for AuraMemoryStore
impl Sync for AuraMemoryStore
impl Unpin for AuraMemoryStore
impl UnsafeUnpin for AuraMemoryStore
impl UnwindSafe for AuraMemoryStore
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