Trait DataCommandSender

Source
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§

Source

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.

Implementors§