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)> { ... }
}Required Methods§
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)>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".