You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
implWebSocketEventforEvent1{}
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.
#[derive(WebSocketEvent)]structEvent1;
The text was updated successfully, but these errors were encountered:
In chorus, every
event
which is also aWebSocketEvent
needs to implement theWebSocketEvent
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 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.
The text was updated successfully, but these errors were encountered: