pub struct Pipeline<TOut, TCollected, TNext>{ /* private fields */ }
Expand description
Implementations§
source§impl<TOut, TCollected, TNext> Pipeline<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> Pipeline<TOut, TCollected, TNext>
sourcepub fn start(&mut self)
pub fn start(&mut self)
Starts the pipeline.
This method starts the pipeline by starting the first stage.
§Panics
This method panics if the pipeline is empty.
sourcepub fn wait_end(self) -> Option<TCollected>
pub fn wait_end(self) -> Option<TCollected>
Waits for the pipeline to finish and collects the result.
This method waits for the pipeline to finish and collects the result.
§Panics
This method panics if the pipeline is empty.
sourcepub fn start_and_wait_end(self) -> Option<TCollected>
pub fn start_and_wait_end(self) -> Option<TCollected>
Start the pipeline and wait for the result. This method will start the pipeline and wait for the result.
§Panics
This method panics if the pipeline is empty.
Trait Implementations§
Auto Trait Implementations§
impl<TOut, TCollected, TNext> RefUnwindSafe for Pipeline<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> Send for Pipeline<TOut, TCollected, TNext>where
TCollected: Send,
impl<TOut, TCollected, TNext> Sync for Pipeline<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> Unpin for Pipeline<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> UnwindSafe for Pipeline<TOut, TCollected, TNext>
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