pub struct GenericOneshotBroadcastSender<MutexType, T>{ /* private fields */ }
Expand description
The sending side of a channel which can be used to exchange values between concurrent tasks.
Values can be sent into the channel through send
.
Implementations§
Source§impl<MutexType, T> GenericOneshotBroadcastSender<MutexType, T>
impl<MutexType, T> GenericOneshotBroadcastSender<MutexType, T>
Sourcepub fn send(&self, value: T) -> Result<(), ChannelSendError<T>>
pub fn send(&self, value: T) -> Result<(), ChannelSendError<T>>
Writes a single value to the channel.
This will notify waiters about the availability of the value. If a value had been written to the channel before, or if the channel is closed, the new value will be rejected and returned inside the error variant.
Trait Implementations§
Source§impl<MutexType, T> Debug for GenericOneshotBroadcastSender<MutexType, T>
impl<MutexType, T> Debug for GenericOneshotBroadcastSender<MutexType, T>
Auto Trait Implementations§
impl<MutexType, T> Freeze for GenericOneshotBroadcastSender<MutexType, T>
impl<MutexType, T> !RefUnwindSafe for GenericOneshotBroadcastSender<MutexType, T>
impl<MutexType, T> Send for GenericOneshotBroadcastSender<MutexType, T>
impl<MutexType, T> Sync for GenericOneshotBroadcastSender<MutexType, T>
impl<MutexType, T> Unpin for GenericOneshotBroadcastSender<MutexType, T>
impl<MutexType, T> !UnwindSafe for GenericOneshotBroadcastSender<MutexType, 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