Add trait requirements for DeviceBackend

This commit is contained in:
hodasemi 2023-10-04 11:24:08 +02:00
parent e1f4016325
commit bd99facbf4

View file

@ -137,7 +137,7 @@ impl From<u8> for AttributeValue {
}
}
pub trait DeviceBackend {
pub trait DeviceBackend: Send + Sync {
fn build_query(&self) -> CommandRequest;
fn process_message(&mut self, msg: &[u8]);
fn attributes(&self) -> &HashMap<&'static str, AttributeValue>;