pub trait TradingCommandSender {
// Required method
fn execute(&self, command: TradingCommand);
}Expand description
Trait for trading command sending that can be implemented for both sync and async runners.
Required Methods§
Sourcefn execute(&self, command: TradingCommand)
fn execute(&self, command: TradingCommand)
Executes a trading command.
- Sync runners send the command to a queue for synchronous execution.
- Async runners send the command to a channel for asynchronous execution.