pub enum InvalidationCause {
None,
Forced,
StateChange(WidgetId),
MessageReceived(WidgetId),
AnimationInProgress(WidgetId),
}
Expand description
Indicates the reason that an Application
state was invalidated and had to be re-rendered
You can get the last invalidation cause of an application using last_invalidation_cause
Variants
None
Application not invalidated
Forced
Application update was forced by calling mark_dirty
StateChange(WidgetId)
A widget’s state changed
MessageReceived(WidgetId)
A message was sent to a widget
AnimationInProgress(WidgetId)
An animation is in progress for a widget
Trait Implementations
sourceimpl Clone for InvalidationCause
impl Clone for InvalidationCause
sourcefn clone(&self) -> InvalidationCause
fn clone(&self) -> InvalidationCause
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 moresourceimpl Debug for InvalidationCause
impl Debug for InvalidationCause
sourceimpl Default for InvalidationCause
impl Default for InvalidationCause
sourcefn default() -> InvalidationCause
fn default() -> InvalidationCause
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for InvalidationCause
impl Send for InvalidationCause
impl Sync for InvalidationCause
impl Unpin for InvalidationCause
impl UnwindSafe for InvalidationCause
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