Struct funfsm::fsm::Fsm
[−]
[src]
pub struct Fsm<T: FsmTypes> { pub state: StateFn<T>, pub ctx: T::Context, }
Fields
state: StateFn<T>
ctx: T::Context
Methods
impl<T: FsmTypes> Fsm<T>
[src]
fn new(ctx: T::Context, state: StateFn<T>) -> Fsm<T>
fn get_state(&self) -> (&'static str, &T::Context)
fn send(&mut self, msg: T::Msg) -> Vec<T::Output>
Trait Implementations
impl<T: Clone + FsmTypes> Clone for Fsm<T> where
T::Context: Clone,
[src]
T::Context: Clone,
fn clone(&self) -> Fsm<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more