Struct sycamore_reactive::SignalEmitter
source · [−]pub struct SignalEmitter(_);
Expand description
A struct for managing subscriptions to signals.
Implementations
sourceimpl 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
sourceimpl Clone for SignalEmitter
impl Clone for SignalEmitter
sourcefn clone(&self) -> SignalEmitter
fn clone(&self) -> SignalEmitter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SignalEmitter
impl Debug for SignalEmitter
sourceimpl Default for SignalEmitter
impl Default for SignalEmitter
sourcefn default() -> SignalEmitter
fn default() -> SignalEmitter
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SignalEmitter
impl !Send for SignalEmitter
impl !Sync for SignalEmitter
impl Unpin for SignalEmitter
impl !UnwindSafe for SignalEmitter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more