pub struct ExecutorServiceImpl {
pub(crate) atlas: AtlasClient,
pub(crate) provider_id: String,
pub(crate) runtime: PlanRuntime,
pub(crate) verification: Arc<VerificationPolicy>,
}Expand description
Executor gRPC handlers sharing active plans and result verification policy.
AtlasClient is cheap to clone — each Execute RPC clones it so per-plan
dispatch runs without serialising on a single mutex.
Fields§
§atlas: AtlasClientAtlas connection used to resolve capabilities for execution and cancellation.
provider_id: StringExecutor’s own provider_id. Two roles:
- consumer_id passed to atlas on every ConnectCapability so the channel record reflects who is using each downstream provider.
- self-detection: when a CapabilityCall in the plan targets this provider_id, dispatch short-circuits to the in-process builtin handlers instead of going through MCP loopback.
runtime: PlanRuntimeShared plan progress and cancellation state used by all RPC handlers.
verification: Arc<VerificationPolicy>Immutable verification timing and routing rules applied to submitted plans.
Implementations§
Source§impl ExecutorServiceImpl
impl ExecutorServiceImpl
Sourcepub fn new(
atlas: AtlasClient,
provider_id: String,
verification: Arc<VerificationPolicy>,
) -> Self
pub fn new( atlas: AtlasClient, provider_id: String, verification: Arc<VerificationPolicy>, ) -> Self
Assemble RPC handlers sharing one active-plan table and verification policy.
Trait Implementations§
Source§impl Clone for ExecutorServiceImpl
impl Clone for ExecutorServiceImpl
Source§impl RobonixSystemExecutorCancelAllPlans for ExecutorServiceImpl
impl RobonixSystemExecutorCancelAllPlans for ExecutorServiceImpl
Source§fn cancel_all<'life0, 'async_trait>(
&'life0 self,
_request: Request<CancelAllRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CancelAllResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel_all<'life0, 'async_trait>(
&'life0 self,
_request: Request<CancelAllRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CancelAllResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Cancel active plans and return whether they finished within the default wait.
Source§impl RobonixSystemExecutorControlPlan for ExecutorServiceImpl
impl RobonixSystemExecutorControlPlan for ExecutorServiceImpl
Source§fn control_plan<'life0, 'async_trait>(
&'life0 self,
request: Request<ControlPlanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ControlPlanResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn control_plan<'life0, 'async_trait>(
&'life0 self,
request: Request<ControlPlanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ControlPlanResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Apply a cancel or cancel_all request and report completion within its wait limit.
Source§impl RobonixSystemExecutorExecute for ExecutorServiceImpl
impl RobonixSystemExecutorExecute for ExecutorServiceImpl
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
request: Request<Plan>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
request: Request<Plan>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate and reserve a plan before returning headers, then stream its execution.
Source§type ExecuteStream = ReceiverStream<Result<RtdlEvent, Status>>
type ExecuteStream = ReceiverStream<Result<RtdlEvent, Status>>
Source§impl RobonixSystemExecutorExecuteStream for ExecutorServiceImpl
impl RobonixSystemExecutorExecuteStream for ExecutorServiceImpl
Source§fn execute_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ExecuteStreamInput>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ExecuteStreamInput>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Require START before handing incremental input to the common execution loop.
Source§type ExecuteStreamStream = ReceiverStream<Result<RtdlEvent, Status>>
type ExecuteStreamStream = ReceiverStream<Result<RtdlEvent, Status>>
Source§impl RobonixSystemExecutorGetHealth for ExecutorServiceImpl
impl RobonixSystemExecutorGetHealth for ExecutorServiceImpl
Source§fn get_module_health<'life0, 'async_trait>(
&'life0 self,
_request: Request<GetModuleHealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetModuleHealthResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_module_health<'life0, 'async_trait>(
&'life0 self,
_request: Request<GetModuleHealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetModuleHealthResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Report the health of the running Executor service.
Source§impl RobonixSystemExecutorListActivePlans for ExecutorServiceImpl
impl RobonixSystemExecutorListActivePlans for ExecutorServiceImpl
Source§fn list_active_plans<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListActivePlansRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListActivePlansResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_active_plans<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListActivePlansRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListActivePlansResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return a snapshot without creating an execution plan for the query.
Auto Trait Implementations§
impl !Freeze for ExecutorServiceImpl
impl !RefUnwindSafe for ExecutorServiceImpl
impl !UnwindSafe for ExecutorServiceImpl
impl Send for ExecutorServiceImpl
impl Sync for ExecutorServiceImpl
impl Unpin for ExecutorServiceImpl
impl UnsafeUnpin for ExecutorServiceImpl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].