pub struct PipelineRunner { /* private fields */ }Expand description
Runs pipelines by spawning tasks and connecting them via channels.
Implementations§
Source§impl PipelineRunner
impl PipelineRunner
Sourcepub fn new(tools: Arc<ToolRegistry>) -> Self
pub fn new(tools: Arc<ToolRegistry>) -> Self
Create a new pipeline runner with the given tool registry.
Sourcepub async fn run(
&self,
commands: &[Command],
ctx: &mut ExecContext,
) -> ExecResult
pub async fn run( &self, commands: &[Command], ctx: &mut ExecContext, ) -> ExecResult
Execute a pipeline of commands.
Each command’s stdout becomes the next command’s stdin. If the pipeline contains scatter/gather, delegates to ScatterGatherRunner. Returns the result of the last command in the pipeline.
Trait Implementations§
Source§impl Clone for PipelineRunner
impl Clone for PipelineRunner
Source§fn clone(&self) -> PipelineRunner
fn clone(&self) -> PipelineRunner
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 moreAuto Trait Implementations§
impl Freeze for PipelineRunner
impl !RefUnwindSafe for PipelineRunner
impl Send for PipelineRunner
impl Sync for PipelineRunner
impl Unpin for PipelineRunner
impl !UnwindSafe for PipelineRunner
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