#[non_exhaustive]pub enum MandatoryHType {
TestSndu,
BridgedFrame,
TsConcat,
PduConcat,
Other(u8),
}Expand description
Typed H-Type for a Mandatory extension header (H-LEN = 0, RFC 4326 §5).
Mandatory H-Types and Optional H-Types are separate IANA registries; value
0x00 means “Test SNDU” in the mandatory space and “Extension-Padding” in
the optional space.
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.
TestSndu
Test SNDU — H-Type 0x00 (RFC 4326 §5.1).
BridgedFrame
Bridged Frame — H-Type 0x01 (RFC 4326 §5.2).
TsConcat
MPEG-2 TS Concatenation — H-Type 0x02 (RFC 5163 §3.1).
PduConcat
PDU Concatenation — H-Type 0x03 (RFC 5163 §3.2).
Other(u8)
An unrecognised mandatory H-Type.
Implementations§
Trait Implementations§
Source§impl Clone for MandatoryHType
impl Clone for MandatoryHType
Source§fn clone(&self) -> MandatoryHType
fn clone(&self) -> MandatoryHType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MandatoryHType
Source§impl Debug for MandatoryHType
impl Debug for MandatoryHType
Source§impl Display for MandatoryHType
impl Display for MandatoryHType
impl Eq for MandatoryHType
Source§impl Hash for MandatoryHType
impl Hash for MandatoryHType
Source§impl PartialEq for MandatoryHType
impl PartialEq for MandatoryHType
Source§fn eq(&self, other: &MandatoryHType) -> bool
fn eq(&self, other: &MandatoryHType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MandatoryHType
impl Serialize for MandatoryHType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MandatoryHType
Auto Trait Implementations§
impl Freeze for MandatoryHType
impl RefUnwindSafe for MandatoryHType
impl Send for MandatoryHType
impl Sync for MandatoryHType
impl Unpin for MandatoryHType
impl UnsafeUnpin for MandatoryHType
impl UnwindSafe for MandatoryHType
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