Trait StatefulAction
Source pub trait StatefulAction: Send {
// Required methods
fn is_over(&self) -> Result<bool>;
fn type_str(&self) -> String;
// Provided methods
fn props(&self) -> Props { ... }
fn start(
&mut self,
sync_writer: &mut QWriter<SyncSignal>,
async_writer: &mut QWriter<AsyncSignal>,
state: &State,
) -> Result<Signal> { ... }
fn update(
&mut self,
signal: &ActionSignal,
sync_writer: &mut QWriter<SyncSignal>,
async_writer: &mut QWriter<AsyncSignal>,
state: &State,
) -> Result<Signal> { ... }
fn show(
&mut self,
ui: &mut Ui,
sync_writer: &mut QWriter<SyncSignal>,
async_writer: &mut QWriter<AsyncSignal>,
state: &State,
) -> Result<()> { ... }
fn stop(
&mut self,
sync_writer: &mut QWriter<SyncSignal>,
async_writer: &mut QWriter<AsyncSignal>,
state: &State,
) -> Result<Signal> { ... }
fn debug(&self) -> Vec<(&str, String)> { ... }
}
Formats the value using the given formatter.
Read more