pub struct SignalSender { /* private fields */ }
Expand description
Used to send Signal
s from a component change context
Implementations§
source§impl SignalSender
impl SignalSender
sourcepub fn write<T>(&self, message: T) -> boolwhere
T: 'static + MessageData,
pub fn write<T>(&self, message: T) -> boolwhere
T: 'static + MessageData,
Send a message
Returns false
if the message could not successfully be sent
sourcepub fn write_raw(&self, message: Message) -> bool
pub fn write_raw(&self, message: Message) -> bool
Send a raw Message
Returns false
if the message could not be successfully sent
sourcepub fn write_raw_all<I>(&self, messages: I)where
I: IntoIterator<Item = Message>,
pub fn write_raw_all<I>(&self, messages: I)where
I: IntoIterator<Item = Message>,
Sends a set of raw Message
s from an iterator
Trait Implementations§
source§impl Clone for SignalSender
impl Clone for SignalSender
source§fn clone(&self) -> SignalSender
fn clone(&self) -> SignalSender
Returns a copy 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 Freeze for SignalSender
impl RefUnwindSafe for SignalSender
impl Send for SignalSender
impl Sync for SignalSender
impl Unpin for SignalSender
impl UnwindSafe for SignalSender
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)