pub struct Sender<T>{ /* private fields */ }Expand description
Allows sending data to many Receivers.
Implementations§
Source§impl<T> Sender<T>
impl<T> Sender<T>
Sourcepub fn send_plain(&mut self, package: T)
pub fn send_plain(&mut self, package: T)
Sends passed data package to all connected Receivers.
Sourcepub fn send_defined(&mut self, id: SignalId, package: T)
pub fn send_defined(&mut self, id: SignalId, package: T)
Sends passed data package to all connected Receivers.
Sourcepub fn send_custom(&mut self, id: &'static str, package: T)
pub fn send_custom(&mut self, id: &'static str, package: T)
Sends passed data package to all connected Receivers.
Auto Trait Implementations§
impl<T> Freeze for Sender<T>
impl<T> RefUnwindSafe for Sender<T>
impl<T> Send for Sender<T>
impl<T> Sync for Sender<T>
impl<T> Unpin for Sender<T>
impl<T> UnwindSafe for Sender<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