pub trait Message: Send + Sync + 'static {
type Response: Send + Sync + 'static;
}
Expand description
This trait is used to mark Messages. Notifications are just Messages with a response type of ()
.
By default, all Messages and their responses must be Send
+ Sync
+ ['static
].