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 DynState
s.
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
fn start(&mut self, _args: A) -> DynResult<A, E, F>
See State::start
.
fn resume(&mut self, _args: A)
See State::resume
.
fn pause(&mut self, _args: A)
See State::pause
.
fn stop(&mut self, _args: A)
See State::stop
.
fn update(&mut self, _args: A) -> DynResult<A, E, F>
See State::update
.
fn fixed_update(&mut self, _args: A) -> DynResult<A, E, F>
See State::fixed_update
.
fn event(&mut self, _args: A, _event: F) -> DynResult<A, E, F>
See State::event
.