Skip to main content

Module pdu

Module pdu 

Source
Expand description

PDU (Persistent Data Unit) representations for different room version formats.

This module provides the PDU types used in Matrix federation:

  • V1Pdu: Room versions 1-2 with hashed event references
  • V3Pdu: Room versions 3-5 with plain event references
  • V6Pdu: Room versions 6-11 with plain event references
  • V12Pdu: Room version 12+ format
  • Pdu: Enum wrapper for version-agnostic handling

Macros§

impl_state_res_event 🔒
Implements the [StateResEvent] trait for PDU types.

Structs§

PduCommon
Common PDU fields independent of room version format.
V1Pdu
PDU representation for room version formats V1/V2.
V3Pdu
PDU representation for room version formats V3-V5.
V6Pdu
PDU representation for room version formats V6-V11.
V12Pdu
PDU representation for room version format V12.

Enums§

Pdu
Supported PDU representations for room versions.

Traits§

AsEventId 🔒
Helper trait for extracting event IDs from different reference formats.

Type Aliases§

ClientEvent
Client event representation.