pub struct PipelineExecutor { /* private fields */ }Expand description
Pipeline executor
Implementations§
Source§impl PipelineExecutor
impl PipelineExecutor
Sourcepub fn from_pipeline(pipeline: &Pipeline) -> Result<Self, GraphError>
pub fn from_pipeline(pipeline: &Pipeline) -> Result<Self, GraphError>
Create a new executor from a pipeline
Sourcepub fn new(graph: ExecutionGraph) -> Self
pub fn new(graph: ExecutionGraph) -> Self
Create a new executor from an execution graph
Sourcepub fn with_config(self, config: ExecutorConfig) -> Self
pub fn with_config(self, config: ExecutorConfig) -> Self
Set executor configuration
Sourcepub fn with_progress(self, tx: ProgressSender) -> Self
pub fn with_progress(self, tx: ProgressSender) -> Self
Set progress event sender
Sourcepub fn with_task_runner(self, cache_dir: PathBuf) -> Self
pub fn with_task_runner(self, cache_dir: PathBuf) -> Self
Enable task execution with the specified cache directory
Sourcepub fn with_container_runner(self) -> Self
pub fn with_container_runner(self) -> Self
Enable container execution
Sourcepub async fn execute(&self, context: ExecutionContext) -> ExecutionResult
pub async fn execute(&self, context: ExecutionContext) -> ExecutionResult
Execute the pipeline
Auto Trait Implementations§
impl Freeze for PipelineExecutor
impl !RefUnwindSafe for PipelineExecutor
impl Send for PipelineExecutor
impl Sync for PipelineExecutor
impl Unpin for PipelineExecutor
impl UnsafeUnpin for PipelineExecutor
impl !UnwindSafe for PipelineExecutor
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
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