pub trait TensorEngine: Send + Sync {
// Required methods
fn execute_task(&self, task: &MiningTask) -> Result<Tensor, TribeError>;
fn get_stats(&self) -> EngineStats;
fn record_result(&self, success: bool, duration: Duration);
}Expand description
Abstraction over the tensor execution engine so callers can depend on a trait (e.g. for testing or alternate backends) instead of a concrete struct.