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 Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnwindSafe for Modifier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more