pub struct EngineDispatcher { /* private fields */ }Expand description
Bridges mlua_flow_ir::AsyncDispatcher to the engine’s
start_task + dispatch_attempt_with pair. Holds one Operator session
token and one spawner, and spins up a fresh task per Step.ref, using
it as the agent name.
Constructed exclusively via with_spawner: each dispatch goes through
engine.dispatch_attempt_with(token, tid, spawner), carrying the
spawner per request. Nothing is stashed on engine-global state, so
multiple dispatchers can drive different Blueprints against the same
Engine in parallel without racing.
Implementations§
Source§impl EngineDispatcher
impl EngineDispatcher
Sourcepub fn with_spawner(
engine: Engine,
op_token: CapToken,
spawner: Arc<dyn SpawnerAdapter>,
) -> Self
pub fn with_spawner( engine: Engine, op_token: CapToken, spawner: Arc<dyn SpawnerAdapter>, ) -> Self
The sole constructor: the spawner is carried per-dispatcher.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EngineDispatcher
impl !UnwindSafe for EngineDispatcher
impl Freeze for EngineDispatcher
impl Send for EngineDispatcher
impl Sync for EngineDispatcher
impl Unpin for EngineDispatcher
impl UnsafeUnpin for EngineDispatcher
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more