Struct pipelines::PipelineConfig [] [src]

pub struct PipelineConfig { /* fields omitted */ }

Configuration for buffers internal to the Pipeline

Each stage inherits the configuration from its previous state. As a result, this configures future stages, not past

Example

use pipelines::{Pipeline, PipelineConfig};

let nums: Vec<u64> = (0..10).collect();
let fibs: Vec<u64> = Pipeline::from(nums)
    .configure(PipelineConfig::default().buff_size(10))
    .map(|x| x*2) // *this* stage has its send buffer set to 10
    .into_iter().collect();

Methods

impl PipelineConfig
[src]

[src]

Set the size of the internal mpsc buffer.

This can affect the effective parallelism and the length of the backlog between stages when different stages of the pipeline take different amounts of time

[src]

Set the size of each batch of messages sent

This tunes how much overhead is spent on synchronisation

Trait Implementations

impl Debug for PipelineConfig
[src]

[src]

Formats the value using the given formatter.

impl Copy for PipelineConfig
[src]

impl Clone for PipelineConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for PipelineConfig
[src]

[src]

Returns the "default value" for a type. Read more