Skip to main content

InterstitialExtensionAttributesMut

Struct InterstitialExtensionAttributesMut 

Source
pub struct InterstitialExtensionAttributesMut<'a, 'b> { /* private fields */ }
Expand description

Corresponds to the attributes defined for HLS Interstitials in [Appnedix D].

This provides mutable access to the properties. Setting or unsetting values here will set/unset them on the Daterange from which this was derived from.

Implementations§

Source§

impl<'a, 'b> InterstitialExtensionAttributesMut<'a, 'b>

Source

pub fn attrs(&'b self) -> InterstitialExtensionAttributes<'a, 'b>

Provides access to the existing values of the interstitial attributes.

Source§

impl<'a, 'b> InterstitialExtensionAttributesMut<'a, 'b>

Source

pub fn set_asset_uri(&mut self, value: impl Into<Cow<'a, str>>)

Sets the X-ASSET-URI attribute.

Source

pub fn unset_asset_uri(&mut self)

Unsets the X-ASSET-URI attribute.

Source

pub fn set_asset_list(&mut self, value: impl Into<Cow<'a, str>>)

Sets the X-ASSET-LIST attribute.

Source

pub fn unset_asset_list(&mut self)

Unsets the X-ASSET-LIST attribute.

Source

pub fn set_resume_offset(&mut self, value: f64)

Sets the X-RESUME-OFFSET attribute.

Source

pub fn unset_resume_offset(&mut self)

Unsets the X-RESUME-OFFSET attribute.

Source

pub fn set_playout_limit(&mut self, value: f64)

Sets the X-PLAYOUT-LIMIT attribute.

Source

pub fn unset_playout_limit(&mut self)

Unsets the X-PLAYOUT-LIMIT attribute.

Source

pub fn set_snap(&mut self, value: impl Into<Cow<'a, str>>)

Sets the X-SNAP attribute.

Source

pub fn unset_snap(&mut self)

Unsets the X-SNAP attribute.

Source

pub fn set_restrict(&mut self, value: impl Into<Cow<'a, str>>)

Sets the X-RESTRICT attribute.

Source

pub fn unset_restrict(&mut self)

Unsets the X-RESTRICT attribute.

Source

pub fn set_content_may_vary(&mut self, value: bool)

Sets the X-CONTENT-MAY-VARY attribute.

Source

pub fn unset_content_may_vary(&mut self)

Unsets the X-CONTENT-MAY-VARY attribute.

Source

pub fn set_timeline_occupies(&mut self, value: impl Into<Cow<'a, str>>)

Sets the X-TIMELINE-OCCUPIES attribute.

Source

pub fn unset_timeline_occupies(&mut self)

Unsets the X-TIMELINE-OCCUPIES attribute.

Source

pub fn set_timeline_style(&mut self, value: impl Into<Cow<'a, str>>)

Sets the X-TIMELINE-STYLE attribute.

Source

pub fn unset_timeline_style(&mut self)

Unsets the X-TIMELINE-STYLE attribute.

Source

pub fn set_skip_control_offset(&mut self, value: f64)

Sets the X-SKIP-CONTROL-OFFSET attribute.

Source

pub fn unset_skip_control_offset(&mut self)

Unsets the X-SKIP-CONTROL-OFFSET attribute.

Source

pub fn set_skip_control_duration(&mut self, value: f64)

Sets the X-SKIP-CONTROL-DURATION attribute.

Source

pub fn unset_skip_control_duration(&mut self)

Unsets the X-SKIP-CONTROL-DURATION attribute.

Source

pub fn set_skip_control_label_id(&mut self, value: impl Into<Cow<'a, str>>)

Sets the X-SKIP-CONTROL-LABEL-ID attribute.

Source

pub fn unset_skip_control_label_id(&mut self)

Unsets the X-SKIP-CONTROL-LABEL-ID attribute.

Trait Implementations§

Source§

impl<'a, 'b> Debug for InterstitialExtensionAttributesMut<'a, 'b>

Source§

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

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

impl<'a, 'b> PartialEq for InterstitialExtensionAttributesMut<'a, 'b>

Source§

fn eq(&self, other: &InterstitialExtensionAttributesMut<'a, 'b>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, 'b> StructuralPartialEq for InterstitialExtensionAttributesMut<'a, 'b>

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