Skip to main content

Module event

Module event 

Source

Re-exportsยง

pub use self::state_key::StateKey;
pub use self::state_key::TypeStateKey;

Modulesยง

content ๐Ÿ”’
filter ๐Ÿ”’
format ๐Ÿ”’
id ๐Ÿ”’
redact ๐Ÿ”’
relation ๐Ÿ”’
state_key
type_ext ๐Ÿ”’
unsigned ๐Ÿ”’

Traitsยง

Event
Abstraction of a PDU so users can have their own PDU types.
Matches
RelationTypeEqual
TypeExt
Convenience trait for adding event type plus state key to state maps.

Functionsยง

gen_event_id
Generates a correct eventId for the PDU. For v1/v2 incoming PDUโ€™s the valueโ€™s event_id is passed through. For all outgoing PDUโ€™s and for v3+ incoming PDUโ€™s it is generated.
gen_event_id_canonical_json
Generates a correct eventId for the incoming pdu.