From bd99facbf42089f282d19ed383a7a457d0547745 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Wed, 4 Oct 2023 11:24:08 +0200 Subject: [PATCH] Add trait requirements for DeviceBackend --- src/devices/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/mod.rs b/src/devices/mod.rs index 00dfed5..98a43e2 100644 --- a/src/devices/mod.rs +++ b/src/devices/mod.rs @@ -137,7 +137,7 @@ impl From 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>;