pub struct AtomicSender<T> { /* private fields */ }Expand description
The send side of an AtomicBus, providing identical functionality to AtomicBus::send, but without the ability to create new subscribers.
§Clone
Cloning an AtomicSender will result in a new sender that is able to send on the same underlying AtomicBus.
Implementations§
Source§impl<T> AtomicSender<T>
impl<T> AtomicSender<T>
Sourcepub fn send<A: Into<Arc<T>>>(&self, data: A)
pub fn send<A: Into<Arc<T>>>(&self, data: A)
See AtomicBus::send
Trait Implementations§
Source§impl<T: Clone> Clone for AtomicSender<T>
impl<T: Clone> Clone for AtomicSender<T>
Source§fn clone(&self) -> AtomicSender<T>
fn clone(&self) -> AtomicSender<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for AtomicSender<T>
impl<T> RefUnwindSafe for AtomicSender<T>where
T: RefUnwindSafe,
impl<T> Send for AtomicSender<T>
impl<T> Sync for AtomicSender<T>
impl<T> Unpin for AtomicSender<T>
impl<T> UnwindSafe for AtomicSender<T>where
T: RefUnwindSafe,
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