Trait cog_task::action::StatefulAction
source · pub trait StatefulAction: Send {
fn is_over(&self) -> Result<bool>;
fn type_str(&self) -> String;
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)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator, { ... }
}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)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,