pub enum BuildCause {
First,
Data,
Hover,
Press,
Focus,
Scroll,
Viewport,
Clock,
Remote,
System,
}Expand description
Why the views ran again. It is the first question about a slow screen: every rebuild costs in proportion to the whole screen.
Variants§
First
The first build.
Data
A State that the views read changed.
Hover
The pointer moved onto something else.
Press
Something was pressed or released.
Focus
Focus moved.
Scroll
Content that depends on its scroll position moved.
Viewport
The window changed size or scale.
Clock
A view asked to run again at a certain time.
Remote
Another thread asked through a waker.
System
A platform service was installed or a system setting changed.
Implementations§
Source§impl BuildCause
impl BuildCause
Sourcepub const ALL: [Self; 10]
pub const ALL: [Self; 10]
Every cause, in the order BuildCauses counts them.
Trait Implementations§
Source§impl Clone for BuildCause
impl Clone for BuildCause
Source§fn clone(&self) -> BuildCause
fn clone(&self) -> BuildCause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuildCause
Source§impl Debug for BuildCause
impl Debug for BuildCause
Source§impl Default for BuildCause
impl Default for BuildCause
Source§fn default() -> BuildCause
fn default() -> BuildCause
Returns the “default value” for a type. Read more
impl Eq for BuildCause
Source§impl Hash for BuildCause
impl Hash for BuildCause
Source§impl PartialEq for BuildCause
impl PartialEq for BuildCause
impl StructuralPartialEq for BuildCause
Auto Trait Implementations§
impl Freeze for BuildCause
impl RefUnwindSafe for BuildCause
impl Send for BuildCause
impl Sync for BuildCause
impl Unpin for BuildCause
impl UnsafeUnpin for BuildCause
impl UnwindSafe for BuildCause
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