Rewrote impl_cast as a proc_macro to make it easier to work with
This commit is contained in:
@@ -10,7 +10,8 @@ use rumqttc::{Event, EventLoop, Incoming, Publish};
|
||||
use tokio::sync::broadcast;
|
||||
|
||||
#[async_trait]
|
||||
pub trait OnMqtt: Sync + Send + 'static {
|
||||
#[impl_cast::device_trait]
|
||||
pub trait OnMqtt {
|
||||
async fn on_mqtt(&mut self, message: &Publish);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user