pub struct BufferedPipeline<T: 'static> { /* private fields */ }Expand description
Pipeline variant using FabricQueue inter-stage buffering.
Materializes a FabricQueue at each stage boundary, proving the
integration with grafos-collections. Items are serialized into the
queue by the producer and deserialized by the consumer.
Implementations§
Source§impl<T: Serialize + DeserializeOwned + 'static> BufferedPipeline<T>
impl<T: Serialize + DeserializeOwned + 'static> BufferedPipeline<T>
Sourcepub fn new(
source: impl Source<T> + 'static,
stages: Vec<StageEntry>,
capacity: usize,
stride: usize,
) -> Self
pub fn new( source: impl Source<T> + 'static, stages: Vec<StageEntry>, capacity: usize, stride: usize, ) -> Self
Create a buffered pipeline that uses FabricQueues between stages.
Sourcepub fn run(&mut self) -> Result<Vec<T>, FabricError>
pub fn run(&mut self) -> Result<Vec<T>, FabricError>
Run the pipeline using FabricQueues for inter-stage buffering.
Each stage boundary creates a FabricQueue, pushes items in, applies the transform, and collects the output.
Auto Trait Implementations§
impl<T> Freeze for BufferedPipeline<T>
impl<T> !RefUnwindSafe for BufferedPipeline<T>
impl<T> !Send for BufferedPipeline<T>
impl<T> !Sync for BufferedPipeline<T>
impl<T> Unpin for BufferedPipeline<T>where
T: Unpin,
impl<T> !UnwindSafe for BufferedPipeline<T>
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