2023-09-26 12:37:59 +00:00
|
|
|
use crate::command::Command;
|
|
|
|
|
2023-09-26 06:30:16 +00:00
|
|
|
pub mod e1;
|
|
|
|
|
|
|
|
pub trait DeviceBackend {
|
2023-09-26 17:42:50 +00:00
|
|
|
fn build_query(&self, device_protocol_version: u32) -> anyhow::Result<Vec<Command>>;
|
2023-09-26 12:37:59 +00:00
|
|
|
fn process_message(&self, msg: &[u8]) -> anyhow::Result<Vec<u8>>;
|
2023-09-26 06:30:16 +00:00
|
|
|
fn set_attribute(&self, attribute: &str, value: &str) -> ();
|
|
|
|
}
|