pub struct PreloadExtensionAttributesMut<'a, 'b> { /* private fields */ }Expand description
Corresponds to the attributes defined for Preloading HLS Date Range Resources in Appendix F.
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> PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> PreloadExtensionAttributesMut<'a, 'b>
Sourcepub fn attrs(&'b self) -> PreloadExtensionAttributes<'b>
pub fn attrs(&'b self) -> PreloadExtensionAttributes<'b>
Provides access to the existing values of the preload attributes.
Source§impl<'a, 'b> PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> PreloadExtensionAttributesMut<'a, 'b>
Sourcepub fn set_target_id(&mut self, target_id: impl Into<Cow<'a, str>>)
pub fn set_target_id(&mut self, target_id: impl Into<Cow<'a, str>>)
Sets the X-TARGET-ID attribute.
Sourcepub fn set_target_class(&mut self, target_class: impl Into<Cow<'a, str>>)
pub fn set_target_class(&mut self, target_class: impl Into<Cow<'a, str>>)
Sets the X-TARGET-CLASS attribute.
Trait Implementations§
Source§impl<'a, 'b> Debug for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> Debug for PreloadExtensionAttributesMut<'a, 'b>
Source§impl<'a, 'b> PartialEq for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> PartialEq for PreloadExtensionAttributesMut<'a, 'b>
Source§fn eq(&self, other: &PreloadExtensionAttributesMut<'a, 'b>) -> bool
fn eq(&self, other: &PreloadExtensionAttributesMut<'a, 'b>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a, 'b> StructuralPartialEq for PreloadExtensionAttributesMut<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> RefUnwindSafe for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> Send for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> Sync for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> Unpin for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> UnsafeUnpin for PreloadExtensionAttributesMut<'a, 'b>
impl<'a, 'b> !UnwindSafe for PreloadExtensionAttributesMut<'a, 'b>
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