StatefulAction

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)> { ... }
}

Required Methods§

Source

fn is_over(&self) -> Result<bool>

Source

fn type_str(&self) -> String

Provided Methods§

Source

fn props(&self) -> Props

Source

fn start( &mut self, sync_writer: &mut QWriter<SyncSignal>, async_writer: &mut QWriter<AsyncSignal>, state: &State, ) -> Result<Signal>

Source

fn update( &mut self, signal: &ActionSignal, sync_writer: &mut QWriter<SyncSignal>, async_writer: &mut QWriter<AsyncSignal>, state: &State, ) -> Result<Signal>

Source

fn show( &mut self, ui: &mut Ui, sync_writer: &mut QWriter<SyncSignal>, async_writer: &mut QWriter<AsyncSignal>, state: &State, ) -> Result<()>

Source

fn stop( &mut self, sync_writer: &mut QWriter<SyncSignal>, async_writer: &mut QWriter<AsyncSignal>, state: &State, ) -> Result<Signal>

Source

fn debug(&self) -> Vec<(&str, String)>

Trait Implementations§

Source§

impl Debug for dyn StatefulAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§