To-device events are received in a sync response in a separate field of the response. They are sent between dirrectly without involving a room and are not permanently stored on the serever. They are mostly used to set up encryption between devices. This patch implements a enum which encapsulates many of the messages that will appear in the to-device part of a sync response.
ruma-events
ruma-events contains serializable types for the events in the Matrix specification that can be shared by client and server code.
Minimum Rust version
ruma-events requires Rust 1.36.0 or later.
Documentation
ruma-events has comprehensive documentation available on docs.rs.
License
Languages
Rust
100%