timely::dataflow::operators::broadcast

Trait 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));
});

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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