pub struct Pipeline { /* private fields */ }Expand description
Execution pipeline connecting source → operators → sink.
Implementations§
Source§impl Pipeline
impl Pipeline
Sourcepub fn new(
source: Box<dyn Source>,
operators: Vec<Box<dyn PushOperator>>,
sink: Box<dyn Sink>,
) -> Self
pub fn new( source: Box<dyn Source>, operators: Vec<Box<dyn PushOperator>>, sink: Box<dyn Sink>, ) -> Self
Create a new pipeline.
Sourcepub fn simple(source: Box<dyn Source>, sink: Box<dyn Sink>) -> Self
pub fn simple(source: Box<dyn Source>, sink: Box<dyn Sink>) -> Self
Create a simple pipeline with just source and sink.
Sourcepub fn with_operator(self, op: Box<dyn PushOperator>) -> Self
pub fn with_operator(self, op: Box<dyn PushOperator>) -> Self
Add an operator to the pipeline.
Sourcepub fn execute(&mut self) -> Result<(), OperatorError>
pub fn execute(&mut self) -> Result<(), OperatorError>
Execute the pipeline.
Auto Trait Implementations§
impl Freeze for Pipeline
impl !RefUnwindSafe for Pipeline
impl Send for Pipeline
impl Sync for Pipeline
impl Unpin for Pipeline
impl !UnwindSafe for Pipeline
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