Struct sauron::cmd::Cmd [−][src]
Expand description
Cmd is a command to be executed by the system. This is returned at the init function of a component and is executed right after instantiation of that component. Cmd required a DSP object which is the Program as an argument The emit function is called with the program argument. The callback is supplied with the program an is then executed/emitted.
Fields
commands: Vec<Callback<DSP, ()>, Global>
the functions that would be executed when this Cmd is emited
Implementations
creates a unified Cmd which batches all the other Cmds in one.
Append more cmd into this cmd and return self
Modify the Cmd such that whether or not it will update the view set by should_update_view
when the cmd is executed in the program
Modify the Cmd such that it will not do an update on the view when it is executed
Modify the Cmd such that it will log measurement when it is executed
Modify the Cmd such that it will log a measuregment when it is executed
The measurement_name
is set to distinguish the measurements from each other.
Trait Implementations
Auto Trait Implementations
impl<DSP> !RefUnwindSafe for Cmd<DSP>
impl<DSP> !UnwindSafe for Cmd<DSP>
Blanket Implementations
Mutably borrows from an owned value. Read more