Trait machinae::DynState [] [src]

pub trait DynState<A, E, F> {
    fn start(&mut self, _args: A) -> DynResult<A, E, F> { ... }
fn resume(&mut self, _args: A) { ... }
fn pause(&mut self, _args: A) { ... }
fn stop(&mut self, _args: A) { ... }
fn update(&mut self, _args: A) -> DynResult<A, E, F> { ... }
fn fixed_update(&mut self, _args: A) -> DynResult<A, E, F> { ... }
fn event(&mut self, _args: A, _event: F) -> DynResult<A, E, F> { ... } }

A dynamic version of State which allows transitions to boxed DynStates. If you can use an enum instead, consider using State which is slightly more efficient.

If you're interested in what the methods mean and when they're called, take a look at State.

Provided Methods

See State::start.

See State::resume.

See State::pause.

See State::stop.

See State::update.

See State::fixed_update.

See State::event.

Implementors