Skip to main content

KernelMemoryApplicationService

Struct KernelMemoryApplicationService 

Source
pub struct KernelMemoryApplicationService<G, D, S, E, W> { /* private fields */ }

Implementations§

Source§

impl<G, D, S, E, W> KernelMemoryApplicationService<G, D, S, E, W>

Source

pub fn new( query_application: Arc<QueryApplicationService<G, D, S>>, command_application: Arc<CommandApplicationService<E, W>>, ) -> Self

Source§

impl<G, D, S, E, W> KernelMemoryApplicationService<G, D, S, E, W>

Source

pub async fn ingest( &self, command: MemoryIngestCommand, ) -> Result<MemoryIngestOutcome, ApplicationError>

Source

pub async fn list_abouts(&self) -> Result<Vec<String>, ApplicationError>

The abouts the memory currently indexes, for consumers that render an index of what can be recalled — a viewer’s sidebar, a CLI listing.

Source

pub async fn wake( &self, query: WakeMemoryQuery, ) -> Result<GetContextResult, ApplicationError>

Source

pub async fn ask( &self, query: AskMemoryQuery, ) -> Result<GetContextResult, ApplicationError>

Source

pub async fn temporal( &self, query: TemporalMemoryQuery, ) -> Result<TemporalMemoryResult, ApplicationError>

Source

pub async fn visual_projection( &self, query: VisualProjectionQuery, ) -> Result<VisualProjectionResult, ApplicationError>

A range- and level-of-detail-aware read model for renderers.

This stays on the application facade: storage never gains a viewer query and renderers never reach into an engine. The temporal move narrows by the selected clock first; bins, clusters and moment entries are then projected on a channel whose result is not a model prompt.

Source

pub async fn relate( &self, query: RelateMemoryQuery, ) -> Result<GetContextResult, ApplicationError>

The neighbourhood relate reads: the same load as ask over the abouts the selection names or resolves. Where the facts fall in time, and what they have to do with each other, is read from the bundle afterwards; the store is asked for nothing it does not hold.

Source

pub async fn trace( &self, query: TraceMemoryQuery, ) -> Result<GetContextPathResult, ApplicationError>

Source

pub async fn inspect( &self, query: InspectMemoryQuery, ) -> Result<InspectMemoryResult, ApplicationError>

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> 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.