pub struct DefaultExecutionEngine { /* private fields */ }Expand description
Default runtime implementation for the unstable v4 execution engine.
The engine validates the run contract, rehydrates facts from prior events, and executes states in topological order with retry/resume semantics.
Implementations§
Source§impl DefaultExecutionEngine
impl DefaultExecutionEngine
Sourcepub fn new(resolver: Arc<dyn PlanResolver>) -> Self
pub fn new(resolver: Arc<dyn PlanResolver>) -> Self
Creates an engine that resolves plans with resolver and rejects live IO by default.
Sourcepub fn with_live_transport_factory(
self,
factory: Arc<dyn LiveIoTransportFactory>,
) -> Self
pub fn with_live_transport_factory( self, factory: Arc<dyn LiveIoTransportFactory>, ) -> Self
Installs the live IO transport factory used for state execution in live mode.
Sourcepub fn with_failpoints(self, failpoints: EngineFailpoints) -> Self
pub fn with_failpoints(self, failpoints: EngineFailpoints) -> Self
Enables test failpoints for the returned engine instance.
Trait Implementations§
Source§impl Clone for DefaultExecutionEngine
impl Clone for DefaultExecutionEngine
Source§fn clone(&self) -> DefaultExecutionEngine
fn clone(&self) -> DefaultExecutionEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ExecutionEngine for DefaultExecutionEngine
impl ExecutionEngine for DefaultExecutionEngine
Auto Trait Implementations§
impl Freeze for DefaultExecutionEngine
impl !RefUnwindSafe for DefaultExecutionEngine
impl Send for DefaultExecutionEngine
impl Sync for DefaultExecutionEngine
impl Unpin for DefaultExecutionEngine
impl UnsafeUnpin for DefaultExecutionEngine
impl !UnwindSafe for DefaultExecutionEngine
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