Closed scrabsha closed 3 years ago
This PR adds the MessageHandler type and its API.
MessageHandler
MsgHandler allows to match over messages, depending on the message type and on the type of the data they store. It aims to replace the msg! macro.
MsgHandler
msg!
Some public but hidden API is modified, so it should not break code.
Fix #214 .
cargo test
I have force-pushed changes. It changes the doc links for MessageHandler so that they use the new intra-doc-feature.
This PR adds the
MessageHandler
type and its API.MsgHandler
allows to match over messages, depending on the message type and on the type of the data they store. It aims to replace themsg!
macro.Some public but hidden API is modified, so it should not break code.
Fix #214 .
Checklist
cargo test
.