pub struct Broadcast<T: BroadcastTrait> { /* private fields */ }Implementations§
Source§impl<T: BroadcastTrait> Broadcast<T>
impl<T: BroadcastTrait> Broadcast<T>
pub fn new(capacity: usize) -> Self
pub fn receiver_count(&self) -> usize
pub fn subscribe(&self) -> BroadcastReceiver<T>
pub fn send(&self, data: T) -> BroadcastSendResult<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Broadcast<T>
impl<T> !RefUnwindSafe for Broadcast<T>
impl<T> Send for Broadcast<T>where
T: Send,
impl<T> Sync for Broadcast<T>where
T: Send,
impl<T> Unpin for Broadcast<T>
impl<T> !UnwindSafe for Broadcast<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