pub struct RunnerLauncher { /* private fields */ }Expand description
Production ContainerLauncher over ContainerRunner.
Implementations§
Source§impl RunnerLauncher
impl RunnerLauncher
Sourcepub fn new(runner: ContainerRunner) -> Self
pub fn new(runner: ContainerRunner) -> Self
Wrap a configured runner.
Trait Implementations§
Source§impl ContainerLauncher for RunnerLauncher
impl ContainerLauncher for RunnerLauncher
Source§fn launch<'life0, 'async_trait>(
&'life0 self,
spec: RunSpec,
outputs: Sender<ContainerOutput>,
on_start: StartHook,
) -> Pin<Box<dyn Future<Output = RunResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn launch<'life0, 'async_trait>(
&'life0 self,
spec: RunSpec,
outputs: Sender<ContainerOutput>,
on_start: StartHook,
) -> Pin<Box<dyn Future<Output = RunResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run
spec to completion. Every output frame is sent, in order, to
outputs (the sender is dropped when the run is over). The channel
is bounded (crate::output_limits::OUTPUT_CHANNEL_CAPACITY): a
launcher waits for room (backpressure) and drops frames once the
receiver is gone (the orchestrator aborted the run). on_start
receives the container right after it was spawned. Never fails:
problems are reported in the RunResult.Source§fn hard_timeout(&self, config: &ContainerConfig) -> Duration
fn hard_timeout(&self, config: &ContainerConfig) -> Duration
Longest a run with
config may live without producing output (used
to size the per-run LLM token TTL).Auto Trait Implementations§
impl !RefUnwindSafe for RunnerLauncher
impl !UnwindSafe for RunnerLauncher
impl Forget for RunnerLauncher
impl Freeze for RunnerLauncher
impl Move for RunnerLauncher
impl Send for RunnerLauncher
impl Sync for RunnerLauncher
impl Unpin for RunnerLauncher
impl UnsafeUnpin for RunnerLauncher
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