Matrix State Resolution in Rust!
/// Abstraction of a PDU so users can have their own PDU types.
/// A mapping of event type and state_key to some value `T`, usually an `EventId`.
pub type StateMap<T> = ;
/// A mapping of `EventId` to `T`, usually a `StateEvent`.
pub type EventMap<T> = ;
The StateStore
trait is an abstraction around what ever database your server (or maybe even client) uses to store Persistant Data Units.
We use ruma
s types when deserializing any PDU or it's contents which helps avoid a lot of type checking logic synapse must do while authenticating event chains.