Skip to main content

StructuralSetKind

Enum StructuralSetKind 

Source
#[non_exhaustive]
pub enum StructuralSetKind {
Show 28 variants Preface, Identification, ContentStorage, EssenceContainerData, MaterialPackage, SourcePackage, TimelineTrack, EventTrackDm, StaticTrackDm, Sequence, SourceClip, TimecodeComponent, DmSegment, DmSourceClip, Filler, PackageMarkerObject, FileDescriptor, GenericPictureEssenceDescriptor, CdciEssenceDescriptor, RgbaEssenceDescriptor, GenericSoundEssenceDescriptor, GenericDataEssenceDescriptor, MultipleDescriptor, NetworkLocator, TextLocator, ApplicationPlugInObject, ApplicationReferencedObject, Unknown([u8; 2]),
}
Expand description

Set Kind (Table 17 — this crate’s byte 14/15 identification list for every Header Metadata Set the spec defines, whether or not this crate types its properties). See docs/st377-1.md’s Table 17 reproduction.

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.
§

Preface

Preface (A.2) — typed, crate::Preface.

§

Identification

Identification (A.3) — typed, crate::Identification.

§

ContentStorage

Content Storage (A.4) — typed, crate::ContentStorage.

§

EssenceContainerData

Essence Container Data (A.5) — typed, crate::EssenceContainerData.

§

MaterialPackage

Material Package (E.1) — identified only.

§

SourcePackage

Source Package, File/Physical variants (E.2-E.4) — identified only.

§

TimelineTrack

Timeline Track, all cases (B.12/B.15/B.18/B.21/B.24/B.27.1) — identified only.

§

EventTrackDm

Event Track (DM) (B.13/B.27.2) — identified only.

§

StaticTrackDm

Static Track (DM) (B.14/B.27.3) — identified only.

§

Sequence

Sequence, all cases (B.9/B.16/B.19/B.22/B.25/B.28) — identified only.

§

SourceClip

Source Clip, Picture/Sound/Data (B.10/B.20/B.23/B.26) — identified only.

§

TimecodeComponent

Timecode Component (B.17) — identified only.

§

DmSegment

DM Segment (B.32) — identified only.

§

DmSourceClip

DM Source Clip (B.33) — identified only.

§

Filler

Filler (B.11) — identified only.

§

PackageMarkerObject

Package Marker Object (B.34) — identified only.

§

FileDescriptor

File Descriptor (F.2) — identified only.

§

GenericPictureEssenceDescriptor

Generic Picture Essence Descriptor (F.4.1) — identified only.

§

CdciEssenceDescriptor

CDCI Essence Descriptor (F.4.2) — identified only.

§

RgbaEssenceDescriptor

RGBA Essence Descriptor (F.4.3) — identified only.

§

GenericSoundEssenceDescriptor

Generic Sound Essence Descriptor (F.5) — identified only.

§

GenericDataEssenceDescriptor

Generic Data Essence Descriptor (F.6) — identified only.

§

MultipleDescriptor

Multiple Descriptor (F.3) — identified only.

§

NetworkLocator

Network Locator (B.4) — identified only.

§

TextLocator

Text Locator (B.5) — identified only.

§

ApplicationPlugInObject

Application Plug-In Object (C.2) — identified only.

§

ApplicationReferencedObject

Application Referenced Object (C.3) — identified only.

§

Unknown([u8; 2])

Any byte 14/15 pair not in Table 17 (private/dark extension, or a Set defined by another SMPTE document, e.g. an Essence Container or Operational Pattern spec — §9.6.1 Note 3).

Implementations§

Source§

impl StructuralSetKind

Source

pub fn name(&self) -> &'static str

The spec’s own Set name (Table 17), "unknown" for Self::Unknown.

Source

pub fn from_bytes(b14: u8, b15: u8) -> Self

Decode from a Set Key’s bytes 14/15 (Table 17).

Source

pub fn to_bytes(self) -> [u8; 2]

Encode to a Set Key’s bytes 14/15.

Trait Implementations§

Source§

impl Clone for StructuralSetKind

Source§

fn clone(&self) -> StructuralSetKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for StructuralSetKind

Source§

impl Debug for StructuralSetKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StructuralSetKind

Available on crate feature serde only.
Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for StructuralSetKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StructuralSetKind

Source§

impl Hash for StructuralSetKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for StructuralSetKind

Source§

fn eq(&self, other: &StructuralSetKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for StructuralSetKind

Available on crate feature serde only.
Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for StructuralSetKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.