pub struct Broadcaster<T> { /* private fields */ }Expand description
Allows to create a thread-broadcaster
Implementations§
Source§impl<T> Broadcaster<T>
impl<T> Broadcaster<T>
pub fn new() -> (Controller<T>, Sender<Sender<T>>)
pub fn broadcaster(self) -> Sender<Sender<T>>
Auto Trait Implementations§
impl<T> Freeze for Broadcaster<T>
impl<T> RefUnwindSafe for Broadcaster<T>
impl<T> Send for Broadcaster<T>where
T: Send,
impl<T> Sync for Broadcaster<T>where
T: Send,
impl<T> Unpin for Broadcaster<T>
impl<T> UnwindSafe for Broadcaster<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more