pub struct McpQueryAdapter { /* private fields */ }Expand description
Server-side ProjectionAdapter backed by an OutputStore
(in-flight-safe, subtask-4, Run-scoped since GH #23 subtask-3) with a
RunStore-backed result_ref fallback (see the module doc for the
full narrative). Holds an Engine handle (GH #23 subtask-3) so
Self::step_naming_for_run can pull the Blueprint-wide
StepNaming table Engine::step_naming_for snapshotted at dispatch
time.
Implementations§
Trait Implementations§
Source§impl ProjectionAdapter for McpQueryAdapter
impl ProjectionAdapter for McpQueryAdapter
Source§fn project(
&self,
key: &ProjectionKey,
ctx_data: &Value,
) -> Result<ProjectionRef, ProjectionError>
fn project( &self, key: &ProjectionKey, ctx_data: &Value, ) -> Result<ProjectionRef, ProjectionError>
ctx_data is used only to fail loud up front (mirrors
mlua_swarm::core::projection::FileProjectionAdapter::project’s
own not-found check) — the returned ProjectionRef::Query
locator carries key itself, not a resolved value; the real lookup
happens later, at Self::fetch time, against whatever the
addressed Run’s backing is then (which may differ from
ctx_data, e.g. after a re-kick, or once a step submits through
the Data-plane store).
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
"file" / "mcp-query"), used in log lines
and diagnostics.Source§fn fetch(&self, key: &ProjectionKey) -> Result<Value, ProjectionError>
fn fetch(&self, key: &ProjectionKey) -> Result<Value, ProjectionError>
key directly, without going through
a previously returned ProjectionRef locator.Source§fn pointer_line(&self, r: &ProjectionRef) -> String
fn pointer_line(&self, r: &ProjectionRef) -> String
ProjectionRef
contributes to the directive header. Must never embed the
projected value itself (inline full-embed is the exact problem
projection exists to avoid — see the module doc).Auto Trait Implementations§
impl !RefUnwindSafe for McpQueryAdapter
impl !UnwindSafe for McpQueryAdapter
impl Freeze for McpQueryAdapter
impl Send for McpQueryAdapter
impl Sync for McpQueryAdapter
impl Unpin for McpQueryAdapter
impl UnsafeUnpin for McpQueryAdapter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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