In chorus, every event which is also a WebSocketEvent needs to implement the WebSocketEvent trait.
The WebSocketEvent trait is a marker trait, which means it has no methods or associated types. It is used to group all events that can be sent over a WebSocket connection.
Currently, the WebSocketEvent marker trait gets implemented as such
impl WebSocketEvent for Event1 {}
This is a bit cumbersome, as it requires us to manually implement the trait for every event. It would be nice if we could add a derive macro to automatically implement the trait for us.
In chorus, every
event
which is also aWebSocketEvent
needs to implement theWebSocketEvent
trait. TheWebSocketEvent
trait is a marker trait, which means it has no methods or associated types. It is used to group all events that can be sent over a WebSocket connection.Currently, the
WebSocketEvent
marker trait gets implemented as suchThis is a bit cumbersome, as it requires us to manually implement the trait for every event. It would be nice if we could add a derive macro to automatically implement the trait for us.