pub trait DeviceProtocol: Send + Sync {
// Required methods
fn device_type(&self) -> DeviceType;
fn max_tensor_dims(&self) -> (usize, usize);
fn max_working_memory(&self) -> usize;
fn heartbeat(&self) -> Result<DeviceStatus, TribeError>;
fn supported_operations(&self) -> Vec<&'static str>;
}Expand description
How a mining device communicates with the validator.