Struct par_stream::BroadcastGuard [−][src]
pub struct BroadcastGuard<T> { /* fields omitted */ }
Expand description
The guard type returned from broadcast().
The guard is used to register new broadcast receivers, each consuming elements
from the stream. The guard must be dropped, either by guard.finish()
or
drop(guard)
before the receivers start consuming data. Otherwise, the
receivers will receive panic.
Implementations
Creates a new receiver.