pub struct SignalEmitter(/* private fields */);Expand description
A struct for managing subscriptions to signals.
Implementations§
Source§impl SignalEmitter
impl SignalEmitter
Sourcepub fn trigger_subscribers(&self)
pub fn trigger_subscribers(&self)
Calls all the subscribers without modifying the state.
This can be useful when using patterns such as inner mutability where the state updated will
not be automatically triggered. In the general case, however, it is preferable to use
Signal::set() instead.
This will also re-compute all the subscribers of this signal by calling all the dependency callbacks.
Trait Implementations§
Source§impl Clone for SignalEmitter
impl Clone for SignalEmitter
Source§fn clone(&self) -> SignalEmitter
fn clone(&self) -> SignalEmitter
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 moreSource§impl Debug for SignalEmitter
impl Debug for SignalEmitter
Source§impl Default for SignalEmitter
impl Default for SignalEmitter
Source§fn default() -> SignalEmitter
fn default() -> SignalEmitter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignalEmitter
impl !RefUnwindSafe for SignalEmitter
impl !Send for SignalEmitter
impl !Sync for SignalEmitter
impl Unpin for SignalEmitter
impl !UnwindSafe for SignalEmitter
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