#[non_exhaustive]pub enum PduFormat {
V1,
V3,
V6,
V12,
}Expand description
PDU format version bucket for room version compatibility.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V1
PDU format for room versions 1-2.
V3
PDU format for room versions 3-5.
V6
PDU format for room versions 6-11.
V12
PDU format for room version 12+.
Trait Implementations§
impl Copy for PduFormat
Source§impl From<KnownRoomVersionId> for PduFormat
impl From<KnownRoomVersionId> for PduFormat
Source§fn from(value: KnownRoomVersionId) -> Self
fn from(value: KnownRoomVersionId) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PduFormat
impl RefUnwindSafe for PduFormat
impl Send for PduFormat
impl Sync for PduFormat
impl Unpin for PduFormat
impl UnsafeUnpin for PduFormat
impl UnwindSafe for PduFormat
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