#[non_exhaustive]pub enum InvalidationSource {
Runtime,
Context,
Event,
Signal,
Timer,
Model,
Host,
Compatibility,
}Expand description
Origin of a retained-work request. This is diagnostic metadata only; it never changes invalidation semantics. The enum is non-exhaustive so downstream matches require a wildcard arm.
§Examples
use ailloli_ui_runtime::app::InvalidationSource;
assert_ne!(InvalidationSource::Event, InvalidationSource::Timer);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Runtime
Direct request from runtime orchestration.
Context
Request made through a component build context.
Event
Request made while routing an input event.
Signal
Reactive signal mutation.
Timer
Delayed or scheduled request.
Model
External retained model notification.
Host
Presentation host request.
Compatibility
Legacy compatibility API.
Trait Implementations§
Source§impl Clone for InvalidationSource
impl Clone for InvalidationSource
Source§fn clone(&self) -> InvalidationSource
fn clone(&self) -> InvalidationSource
Returns a copy 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 InvalidationSource
impl Debug for InvalidationSource
Source§impl Hash for InvalidationSource
impl Hash for InvalidationSource
Source§impl PartialEq for InvalidationSource
impl PartialEq for InvalidationSource
impl Copy for InvalidationSource
impl Eq for InvalidationSource
impl StructuralPartialEq for InvalidationSource
Auto Trait Implementations§
impl Freeze for InvalidationSource
impl RefUnwindSafe for InvalidationSource
impl Send for InvalidationSource
impl Sync for InvalidationSource
impl Unpin for InvalidationSource
impl UnwindSafe for InvalidationSource
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.