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