pub struct ArcTrigger { /* private fields */ }Expand description
A trigger is a data-less signal with the sole purpose of notifying other reactive code of a change.
This can be useful for when using external data not stored in signals, for example.
Implementations§
Source§impl ArcTrigger
impl ArcTrigger
Trait Implementations§
Source§impl Clone for ArcTrigger
impl Clone for ArcTrigger
Source§impl Debug for ArcTrigger
impl Debug for ArcTrigger
Source§impl Default for ArcTrigger
impl Default for ArcTrigger
Source§impl DefinedAt for ArcTrigger
impl DefinedAt for ArcTrigger
Source§fn defined_at(&self) -> Option<&'static Location<'static>>
fn defined_at(&self) -> Option<&'static Location<'static>>
Returns the location at which the signal was defined. This is usually simply
None in
release mode.Source§impl IsDisposed for ArcTrigger
impl IsDisposed for ArcTrigger
Source§fn is_disposed(&self) -> bool
fn is_disposed(&self) -> bool
If
true, the signal cannot be accessed without a panic.Auto Trait Implementations§
impl Freeze for ArcTrigger
impl RefUnwindSafe for ArcTrigger
impl Send for ArcTrigger
impl Sync for ArcTrigger
impl Unpin for ArcTrigger
impl UnwindSafe for ArcTrigger
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReactiveNode for Twhere
T: AsSubscriberSet + DefinedAt,
impl<T> ReactiveNode for Twhere
T: AsSubscriberSet + DefinedAt,
Source§fn mark_dirty(&self)
fn mark_dirty(&self)
Notifies the source’s dependencies that it has changed.
Source§fn mark_check(&self)
fn mark_check(&self)
Notifies the source’s dependencies that it may have changed.
Source§fn mark_subscribers_check(&self)
fn mark_subscribers_check(&self)
Marks that all subscribers need to be checked.
Source§fn update_if_necessary(&self) -> bool
fn update_if_necessary(&self) -> bool
Regenerates the value for this node, if needed, and returns whether
it has actually changed or not.
Source§impl<T> Source for Twhere
T: AsSubscriberSet + DefinedAt,
impl<T> Source for Twhere
T: AsSubscriberSet + DefinedAt,
Source§fn clear_subscribers(&self)
fn clear_subscribers(&self)
Remove all subscribers from this source’s list of dependencies.
Source§fn add_subscriber(&self, subscriber: AnySubscriber)
fn add_subscriber(&self, subscriber: AnySubscriber)
Adds a subscriber to this source’s list of dependencies.
Source§fn remove_subscriber(&self, subscriber: &AnySubscriber)
fn remove_subscriber(&self, subscriber: &AnySubscriber)
Removes a subscriber from this source’s list of dependencies.
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.
Source§impl<T> ToAnySource for Twhere
T: AsSubscriberSet + DefinedAt + IsDisposed,
<T as AsSubscriberSet>::Output: Borrow<Arc<RwLock<SubscriberSet>>>,
impl<T> ToAnySource for Twhere
T: AsSubscriberSet + DefinedAt + IsDisposed,
<T as AsSubscriberSet>::Output: Borrow<Arc<RwLock<SubscriberSet>>>,
Source§fn to_any_source(&self) -> AnySource
fn to_any_source(&self) -> AnySource
Converts this type to its type-erased equivalent.