pub enum Pdu {
V1(V1Pdu),
V3(V3Pdu),
V6(V6Pdu),
V12(V12Pdu),
}Expand description
Supported PDU representations for room versions.
Variants§
V1(V1Pdu)
PDU for room versions using the V1 event format.
V3(V3Pdu)
PDU for room versions V3-V5.
V6(V6Pdu)
PDU for room versions V6-V11.
V12(V12Pdu)
PDU for room version V12.
Implementations§
Trait Implementations§
Source§impl Event for Pdu
impl Event for Pdu
Source§fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
The time of creation on the originating server.
Source§fn event_type(&self) -> &TimelineEventType
fn event_type(&self) -> &TimelineEventType
The event type.
Source§fn content(&self) -> &RawJsonValue
fn content(&self) -> &RawJsonValue
The event’s content.
Source§fn prev_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
fn prev_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
The events before this event.
Source§fn auth_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
fn auth_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
All the authenticating events for this event.
Auto Trait Implementations§
impl Freeze for Pdu
impl RefUnwindSafe for Pdu
impl Send for Pdu
impl Sync for Pdu
impl Unpin for Pdu
impl UnsafeUnpin for Pdu
impl UnwindSafe for Pdu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more