pub struct Trigger { /* private fields */ }Expand description
Reactive Trigger, notifies reactive code to rerun.
See create_trigger for more.
Implementations§
source§impl Trigger
impl Trigger
sourcepub fn notify(&self)
pub fn notify(&self)
Notifies any reactive code where this trigger is tracked to rerun.
Panics
Panics if there is no current reactive runtime, or if the trigger has been disposed.
sourcepub fn try_notify(&self) -> bool
pub fn try_notify(&self) -> bool
Attempts to notify any reactive code where this trigger is tracked to rerun.
Returns false if there is no current reactive runtime.
Trait Implementations§
source§impl PartialEq for Trigger
impl PartialEq for Trigger
source§impl SignalGet for Trigger
impl SignalGet for Trigger
source§impl SignalUpdate for Trigger
impl SignalUpdate for Trigger
impl Copy for Trigger
impl Eq for Trigger
impl StructuralEq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnwindSafe for Trigger
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.