pub struct PlanRunner { /* private fields */ }
Expand description
IL Plan execution engine
Implementations§
Source§impl PlanRunner
impl PlanRunner
Sourcepub fn new(imports: Arc<ImportTable>, exports: Arc<ExportTable>) -> Self
pub fn new(imports: Arc<ImportTable>, exports: Arc<ExportTable>) -> Self
Create a new plan runner
Sourcepub fn with_settings(
imports: Arc<ImportTable>,
exports: Arc<ExportTable>,
timeout_ms: u64,
max_operations: usize,
) -> Self
pub fn with_settings( imports: Arc<ImportTable>, exports: Arc<ExportTable>, timeout_ms: u64, max_operations: usize, ) -> Self
Create a plan runner with custom settings
Sourcepub async fn execute_plan(
&self,
plan: &Plan,
parameters: Value,
captures: Vec<Arc<dyn RpcTarget>>,
) -> Result<Value, PlanExecutionError>
pub async fn execute_plan( &self, plan: &Plan, parameters: Value, captures: Vec<Arc<dyn RpcTarget>>, ) -> Result<Value, PlanExecutionError>
Execute a plan with the given parameters and captures
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlanRunner
impl !RefUnwindSafe for PlanRunner
impl Send for PlanRunner
impl Sync for PlanRunner
impl Unpin for PlanRunner
impl !UnwindSafe for PlanRunner
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