Struct par_stream::BroadcastBuilder
source · [−]pub struct BroadcastBuilder<T> { /* private fields */ }
Expand description
The build type returned from broadcast().
It is used to register new broadcast receivers. Each receiver consumes copies
of items of the stream. The builder is finished by guard.build()
so that
registered receivers can start consuming data. Otherwise, the receivers
take empty input.
Implementations
sourceimpl<T> BroadcastBuilder<T> where
T: 'static + Send + Clone,
impl<T> BroadcastBuilder<T> where
T: 'static + Send + Clone,
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for BroadcastBuilder<T>
impl<T> Send for BroadcastBuilder<T> where
T: Send,
impl<T> Sync for BroadcastBuilder<T> where
T: Send,
impl<T> Unpin for BroadcastBuilder<T>
impl<T> !UnwindSafe for BroadcastBuilder<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more