pub struct RuntimeManager { /* private fields */ }Expand description
Central runtime registry and execution entrypoint.
Implementations§
Source§impl RuntimeManager
impl RuntimeManager
Sourcepub fn register(&self, adapter: BoxRuntimeAdapter)
pub fn register(&self, adapter: BoxRuntimeAdapter)
Register an adapter (replaces existing for same kind).
Sourcepub async fn list(&self) -> Vec<RuntimeHandle>
pub async fn list(&self) -> Vec<RuntimeHandle>
List registered runtimes with live probe status.
Sourcepub fn get(&self, kind: &RuntimeKind) -> Result<BoxRuntimeAdapter>
pub fn get(&self, kind: &RuntimeKind) -> Result<BoxRuntimeAdapter>
Get adapter by kind.
Sourcepub async fn execute(
&self,
request: ExecutionRequest,
policy: &SandboxPolicy,
) -> Result<ExecutionResult>
pub async fn execute( &self, request: ExecutionRequest, policy: &SandboxPolicy, ) -> Result<ExecutionResult>
Execute via the appropriate adapter.
Sourcepub async fn execute_and_capture(
&self,
request: ExecutionRequest,
capture_names: &[String],
policy: &SandboxPolicy,
) -> Result<CaptureOutcome>
pub async fn execute_and_capture( &self, request: ExecutionRequest, capture_names: &[String], policy: &SandboxPolicy, ) -> Result<CaptureOutcome>
Execute and build PIR from captured bindings.
Sourcepub async fn restore_bindings(
&self,
runtime: RuntimeKind,
pir: &PirDocument,
policy: &SandboxPolicy,
) -> Result<RestoreResult>
pub async fn restore_bindings( &self, runtime: RuntimeKind, pir: &PirDocument, policy: &SandboxPolicy, ) -> Result<RestoreResult>
Restore bindings.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RuntimeManager
impl !RefUnwindSafe for RuntimeManager
impl !UnwindSafe for RuntimeManager
impl Send for RuntimeManager
impl Sync for RuntimeManager
impl Unpin for RuntimeManager
impl UnsafeUnpin for RuntimeManager
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