From 33b99534caeaab6894b88825ede8b01eb803a843 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Tue, 5 Sep 2023 22:29:04 +0200 Subject: [PATCH] Make WebsocketEvent send, Sznc, Debug --- src/types/events/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/events/mod.rs b/src/types/events/mod.rs index 2bca363..f4e926c 100644 --- a/src/types/events/mod.rs +++ b/src/types/events/mod.rs @@ -39,6 +39,7 @@ use serde_json::{from_str, from_value, to_value, Value}; #[cfg(feature = "client")] use std::collections::HashMap; +use std::fmt::Debug; #[cfg(feature = "client")] use std::sync::{Arc, RwLock}; @@ -73,7 +74,7 @@ mod webhooks; mod webrtc; -pub trait WebSocketEvent {} +pub trait WebSocketEvent: Send + Sync + Debug {} #[derive(Debug, Default, Serialize, Clone)] /// The payload used for sending events to the gateway