Make Event trait Send+Sync.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-08 11:50:54 +00:00
parent b0315da3d7
commit 8244d78cb2
15 changed files with 27 additions and 25 deletions

View File

@@ -349,9 +349,9 @@ impl Service {
Ok(())
}
pub async fn is_admin_command<E>(&self, event: &E, body: &str) -> bool
pub async fn is_admin_command<Pdu>(&self, event: &Pdu, body: &str) -> bool
where
E: Event + Send + Sync,
Pdu: Event,
{
// Server-side command-escape with public echo
let is_escape = body.starts_with('\\');