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
Sourcepub fn new() -> ArcTrigger
pub fn new() -> ArcTrigger
Creates a new trigger.
Trait Implementations§
Source§impl Clone for ArcTrigger
impl Clone for ArcTrigger
Source§fn clone(&self) -> ArcTrigger
fn clone(&self) -> ArcTrigger
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 ArcTrigger
impl Debug for ArcTrigger
Source§impl Default for ArcTrigger
impl Default for ArcTrigger
Source§fn default() -> ArcTrigger
fn default() -> ArcTrigger
Returns the “default value” for a type. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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> SerializableKey for T
impl<T> SerializableKey for T
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.