Trait timely::dataflow::operators::broadcast::Broadcast

source ·
pub trait Broadcast<D: ExchangeData> {
    // Required method
    fn broadcast(&self) -> Self;
}
Expand description

Broadcast records to all workers.

Required Methods§

source

fn broadcast(&self) -> Self

Broadcast records to all workers.

§Examples
use timely::dataflow::operators::{ToStream, Broadcast, Inspect};

timely::example(|scope| {
    (0..10).to_stream(scope)
           .broadcast()
           .inspect(|x| println!("seen: {:?}", x));
});

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<G: Scope, D: ExchangeData> Broadcast<D> for Stream<G, D>