pub struct Engine<'a> { /* private fields */ }Expand description
The loop engine over a blackboard, owned plan, and worker registry.
Implementations§
Source§impl<'a> Engine<'a>
impl<'a> Engine<'a>
pub fn new( blackboard: &'a dyn Blackboard, plan: Plan, registry: &'a WorkerRegistry, options: EngineOptions, ) -> Self
Sourcepub fn with_replanner(self, replanner: Arc<dyn Replanner>) -> Self
pub fn with_replanner(self, replanner: Arc<dyn Replanner>) -> Self
Attach a replanner (the conductor) so the engine can amend the DAG.
Sourcepub async fn run(
&mut self,
cancel: CancellationToken,
sink: Option<EngineSink>,
resume: Option<ResumeInput>,
) -> Result<RunReport>
pub async fn run( &mut self, cancel: CancellationToken, sink: Option<EngineSink>, resume: Option<ResumeInput>, ) -> Result<RunReport>
Run (or resume) the plan to completion, a stop condition, or a park.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Engine<'a>
impl<'a> !Send for Engine<'a>
impl<'a> !Sync for Engine<'a>
impl<'a> !UnwindSafe for Engine<'a>
impl<'a> Forget for Engine<'a>
impl<'a> Freeze for Engine<'a>
impl<'a> Move for Engine<'a>
impl<'a> Unpin for Engine<'a>
impl<'a> UnsafeUnpin for Engine<'a>
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