ruma

Crate state_res

Source
Available on crate feature state-res only.

Modules§

event_auth
room_version

Structs§

RoomVersion

Enums§

Error
Represents the various errors that arise when resolving state.

Traits§

Event
Abstraction of a PDU so users can have their own PDU types.

Functions§

auth_check
Check whether the incoming event passes the [authorization rules] for the given room version.
auth_types_for_event
Get the list of [relevant auth event types] required to authorize the event of the given type.
lexicographical_topological_sort
Sorts the event graph based on number of outgoing/incoming edges.
resolve
Resolve sets of state events as they come in.

Type Aliases§

Result
Result type for state resolution.
StateMap
A mapping of event type and state_key to some value T, usually an EventId.