pub trait TnuaActionState:
'static
+ Send
+ Sync {
type Basis: TnuaBasis;
type Discriminant: TnuaActionDiscriminant;
// Required method
fn discriminant(&self) -> Self::Discriminant;
}Expand description
An enum mirroring the control scheme, except instead of just having the input of each action
each variant has a TnuaActionState which contains the action’s input, configuration and
memoery. If the variant in the control scheme has payload, they are copied to the variant in
action state as is.
Required Associated Types§
Sourcetype Discriminant: TnuaActionDiscriminant
type Discriminant: TnuaActionDiscriminant
An enum with a unit variant for each variant of the control scheme.
Required Methods§
Sourcefn discriminant(&self) -> Self::Discriminant
fn discriminant(&self) -> Self::Discriminant
The action without the input and payloads.