pub trait Algorithm: Send + Sync {
// Required methods
fn preferences(&self) -> Preferences;
fn signals(&self, c: &SignalContext) -> Signals;
fn strategy(&self, c: &StrategyContext) -> Command;
}Required Methods§
fn preferences(&self) -> Preferences
fn signals(&self, c: &SignalContext) -> Signals
fn strategy(&self, c: &StrategyContext) -> Command
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".