Skip to main content

CatalogTrack

Struct CatalogTrack 

pub struct CatalogTrack {
Show 30 fields pub namespace: Option<String>, pub name: String, pub packaging: Packaging, pub event_type: Option<String>, pub role: Option<TrackRole>, pub is_live: bool, pub target_latency: Option<u64>, pub label: Option<String>, pub render_group: Option<u64>, pub alt_group: Option<u64>, pub init_ref: Option<String>, pub depends: Option<Vec<Dependency>>, pub temporal_id: Option<u32>, pub spatial_id: Option<u32>, pub codec: Option<String>, pub mime_type: Option<String>, pub framerate: Option<f64>, pub timescale: Option<u64>, pub bitrate: Option<u64>, pub width: Option<u32>, pub height: Option<u32>, pub sample_rate: Option<u32>, pub channel_config: Option<String>, pub display_width: Option<u32>, pub display_height: Option<u32>, pub lang: Option<String>, pub parent_name: Option<String>, pub track_duration: Option<u64>, pub max_grp_sap_starting_type: Option<u32>, pub max_obj_sap_starting_type: Option<u32>,
}

Fields§

§namespace: Option<String>§name: String§packaging: Packaging§event_type: Option<String>§role: Option<TrackRole>§is_live: bool§target_latency: Option<u64>§label: Option<String>§render_group: Option<u64>§alt_group: Option<u64>§init_ref: Option<String>§depends: Option<Vec<Dependency>>§temporal_id: Option<u32>§spatial_id: Option<u32>§codec: Option<String>§mime_type: Option<String>§framerate: Option<f64>§timescale: Option<u64>§bitrate: Option<u64>§width: Option<u32>§height: Option<u32>§sample_rate: Option<u32>§channel_config: Option<String>§display_width: Option<u32>§display_height: Option<u32>§lang: Option<String>§parent_name: Option<String>§track_duration: Option<u64>§max_grp_sap_starting_type: Option<u32>§max_obj_sap_starting_type: Option<u32>

Implementations§

§

impl Track

pub fn has_role(&self, role: KnownTrackRole) -> bool

pub fn dependencies<'a>( &'a self, tracks: &'a [Track], ) -> impl Iterator<Item = &'a Track>

The tracks of tracks this track’s depends refers to (draft-ietf-moq-msf-02 §5.2.15): the one each name names and every other track of each renderGroup.

pub fn new(name: &str, packaging: impl Into<Packaging>, is_live: bool) -> Track

The fields draft-ietf-moq-msf-02 §5.2 requires of every track object.

pub fn cmaf_sibling( &self, name: &str, mime_type: &str, alt_group: Option<u64>, ) -> Track

Every group and object starts on a SAP type 1 sample (draft-ietf-moq-cmsf-01 §3.5.2) and altGroup names the switching set (§3.2). The sibling does not inherit initRef; set its CMAF header with set_inline_init_data (§3.1).

pub fn set_inline_init_data(&mut self, data: String) -> InitData

Points initRef at the returned inline initDataList entry; data must already be Base64 (draft-ietf-moq-cmsf-01 §3.1). The entry id is the track name, so ids stay unique as long as track names do.

Trait Implementations§

§

impl Clone for Track

§

fn clone(&self) -> Track

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
§

impl Debug for Track

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Track

§

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

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

impl PartialEq for Track

§

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

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

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

Inequality operator !=. Read more
§

impl Serialize for Track

§

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 Track

Auto Trait Implementations§

§

impl Freeze for Track

§

impl RefUnwindSafe for Track

§

impl Send for Track

§

impl Sync for Track

§

impl Unpin for Track

§

impl UnsafeUnpin for Track

§

impl UnwindSafe for Track

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> MaybeSend for T
where T: Send + ?Sized,

§

impl<T> MaybeSend for T
where T: Send + ?Sized,

§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSync for T
where T: Sync + ?Sized,

§

impl<T> MaybeSync for T
where T: Sync,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more