pub trait ActorStateFlow: ActorState + Sized {
// Required method
fn run_flow(&mut self) -> ActorFlow;
// Provided methods
fn pre_run_flow(&mut self) -> ActorFlow { ... }
fn pre_run(&mut self) -> bool { ... }
fn run(&mut self) -> bool { ... }
fn post_run(self) { ... }
}Expand description
An ActorState that deals with ActorFlows.
Required Methods§
Provided Methods§
fn pre_run_flow(&mut self) -> ActorFlow
fn pre_run(&mut self) -> bool
fn run(&mut self) -> bool
fn post_run(self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".