Struct sauron_core::dom::cmd::Modifier [−][src]
pub struct Modifier {
pub should_update_view: bool,
pub log_measurements: bool,
pub measurement_name: String,
}
Expand description
These are collections of fields where we can modify the Cmd such as logging measurement or should update the view
Fields
should_update_view: bool
this instruct the program whether or not to update the view
log_measurements: bool
tell the cmd to log the measurements of not. set only to true for a certain MSG where you want to measure the performance in the component update function. Otherwise, measurement calls for other non-trivial functions are also called causing on measurements.
measurement_name: String
Set the measurement name for this Cmd. This is used to distinguish measurements from other measurements in different parts of you application
This measurment name will be copied
into the Measurement
passed in
Application::measurement
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Modifier
impl UnwindSafe for Modifier
Blanket Implementations
Mutably borrows from an owned value. Read more