Skip to main content

QueryApplicationService

Struct QueryApplicationService 

Source
pub struct QueryApplicationService<G, D, S> { /* private fields */ }

Implementations§

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Source

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>

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Source

pub fn new( graph_reader: Arc<G>, detail_reader: Arc<D>, snapshot_store: Arc<S>, generator_version: &'static str, ) -> Self

Source

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.

Source

pub async fn read_snapshot(&self) -> Result<Option<Self>, ApplicationError>

Source§

impl<G: GraphNeighborhoodReader + Send + Sync, D, S> QueryApplicationService<G, D, S>

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Source§

impl<G, D, S> QueryApplicationService<G, D, S>

Trait Implementations§

Source§

impl<G: Debug, D: Debug, S: Debug> Debug for QueryApplicationService<G, D, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>
where Arc<G>: Freeze, Arc<D>: Freeze, Arc<S>: Freeze, Option<Arc<dyn ReadSnapshotProvider<G, D>>>: Freeze,

§

impl<G, D, S> Send for QueryApplicationService<G, D, S>
where Arc<G>: Send, Arc<D>: Send, Arc<S>: Send, Option<Arc<dyn ReadSnapshotProvider<G, D>>>: Send,

§

impl<G, D, S> Sync for QueryApplicationService<G, D, S>
where Arc<G>: Sync, Arc<D>: Sync, Arc<S>: Sync, Option<Arc<dyn ReadSnapshotProvider<G, D>>>: Sync,

§

impl<G, D, S> Unpin for QueryApplicationService<G, D, S>
where Arc<G>: Unpin, Arc<D>: Unpin, Arc<S>: Unpin, Option<Arc<dyn ReadSnapshotProvider<G, D>>>: Unpin,

§

impl<G, D, S> UnsafeUnpin for QueryApplicationService<G, D, S>

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.