Skip to main content

ActorStateFlow

Trait ActorStateFlow 

Source
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§

Source

fn run_flow(&mut self) -> ActorFlow

Provided Methods§

Source

fn pre_run_flow(&mut self) -> ActorFlow

Source

fn pre_run(&mut self) -> bool

Source

fn run(&mut self) -> bool

Source

fn post_run(self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§