Skip to main content

Mpd

Struct Mpd 

Source
#[non_exhaustive]
pub struct Mpd {
Show 20 fields pub id: Option<String>, pub profiles: Vec<String>, pub kind: PresentationType, pub availability_start_time_us: Option<i64>, pub availability_end_time_us: Option<i64>, pub publish_time_us: Option<i64>, pub media_presentation_duration: Option<Duration>, pub minimum_update_period: Option<Duration>, pub min_buffer_time: Option<Duration>, pub time_shift_buffer_depth: Option<Duration>, pub suggested_presentation_delay: Option<Duration>, pub max_segment_duration: Option<Duration>, pub max_subsegment_duration: Option<Duration>, pub base_urls: Vec<BaseUrl>, pub locations: Vec<String>, pub utc_timings: Vec<UtcTiming>, pub essential_properties: Vec<Descriptor>, pub supplemental_properties: Vec<Descriptor>, pub periods: Vec<Period>, pub features: MpdFeatures,
}
Expand description

An MPD (5.3.1).

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§id: Option<String>

@id.

§profiles: Vec<String>

@profiles, split on ,.

§kind: PresentationType

@type.

§availability_start_time_us: Option<i64>

@availabilityStartTime, Unix microseconds.

§availability_end_time_us: Option<i64>

@availabilityEndTime, Unix microseconds.

§publish_time_us: Option<i64>

@publishTime, Unix microseconds.

§media_presentation_duration: Option<Duration>

@mediaPresentationDuration.

§minimum_update_period: Option<Duration>

@minimumUpdatePeriod.

§min_buffer_time: Option<Duration>

@minBufferTime.

§time_shift_buffer_depth: Option<Duration>

@timeShiftBufferDepth.

§suggested_presentation_delay: Option<Duration>

@suggestedPresentationDelay.

§max_segment_duration: Option<Duration>

@maxSegmentDuration.

§max_subsegment_duration: Option<Duration>

@maxSubsegmentDuration.

§base_urls: Vec<BaseUrl>

BaseURL alternates.

§locations: Vec<String>

Location texts.

§utc_timings: Vec<UtcTiming>

UTCTiming elements in document order (alternatives, in preference order).

§essential_properties: Vec<Descriptor>

EssentialProperty.

§supplemental_properties: Vec<Descriptor>

SupplementalProperty.

§periods: Vec<Period>

The Periods.

§features: MpdFeatures

Constructs seen but not acted on.

Implementations§

Source§

impl Mpd

Source

pub fn parse(bytes: &[u8]) -> Result<Self, MpdError>

Parse an MPD document with the default Limits.

§Errors

MpdError for malformed XML, a non-MPD root, a schema violation the core relies on, an exceeded bound, or an out-of-scope presentation type.

Source

pub fn parse_with(bytes: &[u8], limits: &Limits) -> Result<Self, MpdError>

Parse an MPD document under explicit Limits.

§Errors

See Mpd::parse.

Trait Implementations§

Source§

impl Clone for Mpd

Source§

fn clone(&self) -> Self

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 Debug for Mpd

Source§

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

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

impl Default for Mpd

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Mpd

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Mpd

Auto Trait Implementations§

§

impl Freeze for Mpd

§

impl RefUnwindSafe for Mpd

§

impl Send for Mpd

§

impl Sync for Mpd

§

impl Unpin for Mpd

§

impl UnsafeUnpin for Mpd

§

impl UnwindSafe for Mpd

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> DescriptorObject for T
where T: Debug + Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
Source§

impl<T> ExtensionObject for T
where T: Debug + Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
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> TableObject for T
where T: Debug + Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
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.