pub trait Outcome {
type Commands;
// Required method
fn get_commands_to_reach(&self, desired: &Self) -> Self::Commands;
}
Expand description
The externally observable state of the actor.
Required Associated Types§
Required Methods§
Sourcefn get_commands_to_reach(&self, desired: &Self) -> Self::Commands
fn get_commands_to_reach(&self, desired: &Self) -> Self::Commands
Returns the instructions to emit in order to change the current visible state to the desired one.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.