pub struct ScatterGatherRunner { /* private fields */ }Expand description
Runs scatter/gather pipelines.
Implementations§
Source§impl ScatterGatherRunner
impl ScatterGatherRunner
Sourcepub fn new(tools: Arc<ToolRegistry>) -> Self
pub fn new(tools: Arc<ToolRegistry>) -> Self
Create a new scatter/gather runner.
Sourcepub async fn run(
&self,
pre_scatter: &[Command],
scatter_opts: ScatterOptions,
parallel: &[Command],
gather_opts: GatherOptions,
post_gather: &[Command],
ctx: &mut ExecContext,
) -> ExecResult
pub async fn run( &self, pre_scatter: &[Command], scatter_opts: ScatterOptions, parallel: &[Command], gather_opts: GatherOptions, post_gather: &[Command], ctx: &mut ExecContext, ) -> ExecResult
Execute a scatter/gather pipeline.
The pipeline is split into three parts:
- pre_scatter: commands before scatter
- parallel: commands between scatter and gather
- post_gather: commands after gather
Returns the final result after all stages complete.
Auto Trait Implementations§
impl Freeze for ScatterGatherRunner
impl !RefUnwindSafe for ScatterGatherRunner
impl Send for ScatterGatherRunner
impl Sync for ScatterGatherRunner
impl Unpin for ScatterGatherRunner
impl !UnwindSafe for ScatterGatherRunner
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