pub struct EmbeddedRuntime<P: PluginHost> { /* private fields */ }Expand description
Synchronous reference runtime over the trusted in-memory Machine.
Implementations§
Source§impl<P: PluginHost> EmbeddedRuntime<P>
impl<P: PluginHost> EmbeddedRuntime<P>
Sourcepub const fn machine(&self) -> &Machine
pub const fn machine(&self) -> &Machine
Access the underlying machine for queries and conformance assertions.
Sourcepub fn seal(&mut self, candidate: PlanCandidate) -> RuntimeResult<SealedPlan>
pub fn seal(&mut self, candidate: PlanCandidate) -> RuntimeResult<SealedPlan>
Seal a language-neutral candidate using the trusted Rust kernel.
Sourcepub fn execute(
&mut self,
plan: SealedPlan,
input: &Value,
run_id: impl Into<String>,
) -> RuntimeResult<ExecutionResult>
pub fn execute( &mut self, plan: SealedPlan, input: &Value, run_id: impl Into<String>, ) -> RuntimeResult<ExecutionResult>
Execute a sealed plan to a terminal Result in the Embedded profile.
Auto Trait Implementations§
impl<P> Freeze for EmbeddedRuntime<P>where
P: Freeze,
impl<P> RefUnwindSafe for EmbeddedRuntime<P>where
P: RefUnwindSafe,
impl<P> Send for EmbeddedRuntime<P>where
P: Send,
impl<P> Sync for EmbeddedRuntime<P>where
P: Sync,
impl<P> Unpin for EmbeddedRuntime<P>where
P: Unpin,
impl<P> UnsafeUnpin for EmbeddedRuntime<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for EmbeddedRuntime<P>where
P: UnwindSafe,
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