pub struct Runtime { /* private fields */ }Expand description
Deterministic runtime that invokes only registered trusted capabilities.
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn new(registry: CapabilityRegistry) -> Self
pub fn new(registry: CapabilityRegistry) -> Self
Creates a runtime from a host-controlled registry.
Sourcepub fn with_services(self, services: ServiceRegistry) -> Self
pub fn with_services(self, services: ServiceRegistry) -> Self
Adds adapter-provided host services to subsequent evaluations.
Sourcepub fn run(
&self,
project: &Project,
plan: ExecutionPlan,
) -> Result<Report, EngineError>
pub fn run( &self, project: &Project, plan: ExecutionPlan, ) -> Result<Report, EngineError>
Executes a plan and returns deterministically sorted findings.
Execution fails closed if the host registry no longer contains any capability that was present when the plan was compiled.
Sourcepub fn run_session(
&self,
session: &EvidenceSession,
plan: ExecutionPlan,
) -> Result<Report, EngineError>
pub fn run_session( &self, session: &EvidenceSession, plan: ExecutionPlan, ) -> Result<Report, EngineError>
Executes a plan against one immutable source/evidence snapshot.
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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