Add trait requirements for DeviceBackend
This commit is contained in:
parent
e1f4016325
commit
bd99facbf4
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ impl From<u8> for AttributeValue {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait DeviceBackend {
|
pub trait DeviceBackend: Send + Sync {
|
||||||
fn build_query(&self) -> CommandRequest;
|
fn build_query(&self) -> CommandRequest;
|
||||||
fn process_message(&mut self, msg: &[u8]);
|
fn process_message(&mut self, msg: &[u8]);
|
||||||
fn attributes(&self) -> &HashMap<&'static str, AttributeValue>;
|
fn attributes(&self) -> &HashMap<&'static str, AttributeValue>;
|
||||||
|
|
Loading…
Reference in a new issue