pub struct QueryApplicationService<G, D, S> { /* private fields */ }Implementations§
Source§impl<G, D, S> QueryApplicationService<G, D, S>where
G: GraphNeighborhoodReader + Send + Sync,
D: NodeDetailReader + Send + Sync,
S: SnapshotStore + Send + Sync,
impl<G, D, S> QueryApplicationService<G, D, S>where
G: GraphNeighborhoodReader + Send + Sync,
D: NodeDetailReader + Send + Sync,
S: SnapshotStore + Send + Sync,
pub async fn get_context( &self, query: GetContextQuery, ) -> Result<GetContextResult, ApplicationError>
Source§impl<G, D, S> QueryApplicationService<G, D, S>where
G: GraphNeighborhoodReader + Send + Sync,
D: NodeDetailReader + Send + Sync,
S: SnapshotStore + Send + Sync,
impl<G, D, S> QueryApplicationService<G, D, S>where
G: GraphNeighborhoodReader + Send + Sync,
D: NodeDetailReader + Send + Sync,
S: SnapshotStore + Send + Sync,
pub async fn get_context_path( &self, query: GetContextPathQuery, ) -> Result<GetContextPathResult, ApplicationError>
Source§impl<G, D, S> QueryApplicationService<G, D, S>
impl<G, D, S> QueryApplicationService<G, D, S>
pub async fn get_node_detail( &self, query: GetNodeDetailQuery, ) -> Result<GetNodeDetailResult, ApplicationError>
Source§impl<G, D, S> QueryApplicationService<G, D, S>
impl<G, D, S> QueryApplicationService<G, D, S>
Sourcepub async fn get_node_details(
&self,
node_ids: Vec<String>,
) -> Result<Vec<Option<GetNodeDetailResult>>, ApplicationError>
pub async fn get_node_details( &self, node_ids: Vec<String>, ) -> Result<Vec<Option<GetNodeDetailResult>>, ApplicationError>
Materialize already selected refs in order, retaining absent nodes and absent bodies as different states. Use this service’s operation snapshot when graph and bodies must describe the same committed state.
Source§impl<G, D, S> QueryApplicationService<G, D, S>
impl<G, D, S> QueryApplicationService<G, D, S>
pub async fn get_node_relationships( &self, query: GetNodeRelationshipsQuery, ) -> Result<GetNodeRelationshipsResult, ApplicationError>
Source§impl<G, D, S> QueryApplicationService<G, D, S>
impl<G, D, S> QueryApplicationService<G, D, S>
pub async fn list_memory_abouts(&self) -> Result<Vec<String>, ApplicationError>
pub async fn list_memory_abouts_by_dimensions( &self, dimension_ids: &[String], ) -> Result<Vec<String>, ApplicationError>
Source§impl<G, D, S> QueryApplicationService<G, D, S>
impl<G, D, S> QueryApplicationService<G, D, S>
pub fn new( graph_reader: Arc<G>, detail_reader: Arc<D>, snapshot_store: Arc<S>, generator_version: &'static str, ) -> Self
Sourcepub fn with_read_snapshots(
self,
provider: Arc<dyn ReadSnapshotProvider<G, D>>,
) -> Self
pub fn with_read_snapshots( self, provider: Arc<dyn ReadSnapshotProvider<G, D>>, ) -> Self
Configure a backend that owns graph and bodies in one store. Without this provider separate adapters retain their best-effort read semantics. A configured provider error propagates; it never falls back to live reads.
pub async fn read_snapshot(&self) -> Result<Option<Self>, ApplicationError>
Source§impl<G: GraphNeighborhoodReader + Send + Sync, D, S> QueryApplicationService<G, D, S>
impl<G: GraphNeighborhoodReader + Send + Sync, D, S> QueryApplicationService<G, D, S>
pub async fn read_nodes( &self, request: &MemoryNodesRequest, ) -> Result<MemoryNodesResult, ApplicationError>
pub async fn evidence_paths( &self, request: &EvidencePathRequest, ) -> Result<EvidencePathResult, ApplicationError>
pub async fn trace_search( &self, request: &TraceSearchRequest, ) -> Result<TraceSearchResult, ApplicationError>
Source§impl<G, D, S> QueryApplicationService<G, D, S>where
G: GraphNeighborhoodReader + Send + Sync,
D: NodeDetailReader + Send + Sync,
S: SnapshotStore + Send + Sync,
impl<G, D, S> QueryApplicationService<G, D, S>where
G: GraphNeighborhoodReader + Send + Sync,
D: NodeDetailReader + Send + Sync,
S: SnapshotStore + Send + Sync,
pub async fn rehydrate_session( &self, query: RehydrateSessionQuery, ) -> Result<RehydrateSessionResult, ApplicationError>
pub async fn warmup_bundle(&self) -> Result<KmpBundle, ApplicationError>
Source§impl<G, D, S> QueryApplicationService<G, D, S>
impl<G, D, S> QueryApplicationService<G, D, S>
pub fn validate_scope(&self, query: ValidateScopeQuery) -> ScopeValidation
Trait Implementations§
Auto Trait Implementations§
impl<G, D, S> !RefUnwindSafe for QueryApplicationService<G, D, S>
impl<G, D, S> !UnwindSafe for QueryApplicationService<G, D, S>
impl<G, D, S> Freeze for QueryApplicationService<G, D, S>
impl<G, D, S> Send for QueryApplicationService<G, D, S>
impl<G, D, S> Sync for QueryApplicationService<G, D, S>
impl<G, D, S> Unpin for QueryApplicationService<G, D, S>
impl<G, D, S> UnsafeUnpin for QueryApplicationService<G, D, S>where
Arc<G>: UnsafeUnpin,
Arc<D>: UnsafeUnpin,
Arc<S>: UnsafeUnpin,
Option<Arc<dyn ReadSnapshotProvider<G, D>>>: UnsafeUnpin,
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