#[non_exhaustive]pub enum Descriptor<'a> {
Ca(CaDescriptor<'a>),
DataStreamAlignment(DataStreamAlignmentDescriptor),
PrivateDataIndicator(PrivateDataIndicatorDescriptor),
Registration(RegistrationDescriptor<'a>),
Unknown {
tag: u8,
bytes: &'a [u8],
},
}Expand description
Unified descriptor variant. Variants land as per-descriptor phases complete.
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.
Ca(CaDescriptor<'a>)
Conditional Access descriptor (tag 0x09).
DataStreamAlignment(DataStreamAlignmentDescriptor)
Data stream alignment descriptor (tag 0x06).
PrivateDataIndicator(PrivateDataIndicatorDescriptor)
Private Data Indicator descriptor (tag 0x0F).
Registration(RegistrationDescriptor<'a>)
Registration descriptor (tag 0x05).
Unknown
Forward-compatible fallthrough for tags we don’t recognise.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for Descriptor<'a>
impl<'a> Clone for Descriptor<'a>
Source§fn clone(&self) -> Descriptor<'a>
fn clone(&self) -> Descriptor<'a>
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 moreSource§impl<'a> Debug for Descriptor<'a>
impl<'a> Debug for Descriptor<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for Descriptor<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Descriptor<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for Descriptor<'a>
Source§impl<'a> PartialEq for Descriptor<'a>
impl<'a> PartialEq for Descriptor<'a>
Source§fn eq(&self, other: &Descriptor<'a>) -> bool
fn eq(&self, other: &Descriptor<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for Descriptor<'a>
impl<'a> Serialize for Descriptor<'a>
impl<'a> StructuralPartialEq for Descriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for Descriptor<'a>
impl<'a> RefUnwindSafe for Descriptor<'a>
impl<'a> Send for Descriptor<'a>
impl<'a> Sync for Descriptor<'a>
impl<'a> Unpin for Descriptor<'a>
impl<'a> UnsafeUnpin for Descriptor<'a>
impl<'a> UnwindSafe for Descriptor<'a>
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