Skip to main content

MembraneMemoryBackend

Struct MembraneMemoryBackend 

Source
pub struct MembraneMemoryBackend { /* private fields */ }
Expand description

Memory backend over Pulse’s membrane CLI.

Implementations§

Trait Implementations§

Source§

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,

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,

Membrane resolves scope server-side; global is always a valid member of the chain.

Source§

fn binding(&self) -> &BackendBinding

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

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,

Production consolidation operation recorded by CR-000, retained for learning migration.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.