Skip to main content

Module tee

Module tee 

Source
Expand description

The Tee and TeeHelper types, by which stream consumers rendezvous with the producer.

The design is a shared list of Box<dyn Push<T>> types, which are added to by TeeHelper and pushed into by the Tee once the dataflow is running. Some care is taken so that T does not need to implement Clone, other than for the instantiation of a (boxed) variant that supports multiple consumers, to avoid the constraint for single-consumer streams.

Structsยง

Tee
The writing half of a shared destination for pushing at.
TeeHelper
The subscribe half of a shared destination for pushing at.