pub struct MembraneMemoryBackend { /* private fields */ }Expand description
Memory backend over Pulse’s membrane CLI.
Implementations§
Source§impl MembraneMemoryBackend
impl MembraneMemoryBackend
pub fn new(handle: MembraneHandle) -> Self
pub fn handle(&self) -> &MembraneHandle
Trait Implementations§
Source§impl MemoryBackend for MembraneMemoryBackend
impl MemoryBackend for MembraneMemoryBackend
Source§fn entries<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 CallContext,
__arg2: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn entries<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 CallContext,
__arg2: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
memory list carries no content, so full entries cannot be built; use list for rows
and search/recall_scored for content.
Source§fn scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Membrane resolves scope server-side; global is always a valid member of the chain.
fn binding(&self) -> &BackendBinding
fn activity_json<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 CallContext,
__arg2: usize,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn embedder_dim<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 CallContext,
) -> Pin<Box<dyn Future<Output = Result<usize, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_full<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 CallContext,
_: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<FullMemoryRecord, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn log_recall_with_replay<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'life8, 'life9, 'life10, 'life11, 'life12, 'life13, 'life14, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
_: &'life2 str,
__arg3: Option<&'life3 str>,
__arg4: usize,
__arg5: usize,
__arg6: usize,
__arg7: usize,
_: &'life4 str,
__arg9: Option<&'life5 str>,
__arg10: Option<&'life6 str>,
__arg11: Option<&'life7 str>,
__arg12: Option<&'life8 str>,
__arg13: Option<&'life9 str>,
__arg14: Option<&'life10 str>,
__arg15: Option<&'life11 str>,
_: &'life12 str,
_: &'life13 str,
_: &'life14 str,
) -> Pin<Box<dyn Future<Output = Result<(), MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
'life8: 'async_trait,
'life9: 'async_trait,
'life10: 'async_trait,
'life11: 'async_trait,
'life12: 'async_trait,
'life13: 'async_trait,
'life14: 'async_trait,
fn metrics_json<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
_name: &'life2 str,
content: &'life3 str,
_scope: &'life4 str,
_tier: MemoryTier,
) -> Pin<Box<dyn Future<Output = Result<MemoryId, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn recall_scored<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
query: &'life2 str,
limit: usize,
scopes: &'life3 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<(MemoryEntry, Score)>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn record_injections<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
_: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<(), MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn remember<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
content: &'life2 str,
keywords: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<MemoryEntry, MemoryBackendError>> + 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,
context: &'life1 CallContext,
query: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn try_put<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
name: &'life2 str,
content: &'life3 str,
scope: &'life4 str,
tier: MemoryTier,
) -> Pin<Box<dyn Future<Output = Result<MemoryId, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
_scope: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryListRow>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
_scope: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryListRow>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Production
/list operation recorded by CR-000, retained for route migration.Source§fn remember_consolidated<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
_name: &'life2 str,
content: &'life3 str,
keywords: Vec<String>,
_threshold: Score,
) -> Pin<Box<dyn Future<Output = Result<Option<MemoryEntry>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn remember_consolidated<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 CallContext,
_name: &'life2 str,
content: &'life3 str,
keywords: Vec<String>,
_threshold: Score,
) -> Pin<Box<dyn Future<Output = Result<Option<MemoryEntry>, MemoryBackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Production consolidation operation recorded by CR-000, retained for learning migration.
Auto Trait Implementations§
impl Forget for MembraneMemoryBackend
impl Freeze for MembraneMemoryBackend
impl Move for MembraneMemoryBackend
impl RefUnwindSafe for MembraneMemoryBackend
impl Send for MembraneMemoryBackend
impl Sync for MembraneMemoryBackend
impl Unpin for MembraneMemoryBackend
impl UnsafeUnpin for MembraneMemoryBackend
impl UnwindSafe for MembraneMemoryBackend
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more