9 lines
265 B
Rust
9 lines
265 B
Rust
use crate::command::Command;
|
|
|
|
pub mod e1;
|
|
|
|
pub trait DeviceBackend {
|
|
fn build_query(&self) -> anyhow::Result<Vec<Command>>;
|
|
fn process_message(&self, msg: &[u8]) -> anyhow::Result<Vec<u8>>;
|
|
fn set_attribute(&self, attribute: &str, value: &str) -> ();
|
|
}
|