pub struct Targetduration<'a> { /* private fields */ }Expand description
Corresponds to the #EXT-X-TARGETDURATION tag.
https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-18#section-4.4.3.1
Implementations§
Source§impl<'a> Targetduration<'a>
impl<'a> Targetduration<'a>
Sourcepub fn target_duration(&self) -> u64
pub fn target_duration(&self) -> u64
Corresponds to the value of the tag (#EXT-X-TARGETDURATION:<s>).
See Self for a link to the HLS documentation for this attribute.
Sourcepub fn set_target_duration(&mut self, target_duration: u64)
pub fn set_target_duration(&mut self, target_duration: u64)
Sets the value of the tag.
See Self for a link to the HLS documentation for this attribute.
Trait Implementations§
Source§impl<'a> Clone for Targetduration<'a>
impl<'a> Clone for Targetduration<'a>
Source§fn clone(&self) -> Targetduration<'a>
fn clone(&self) -> Targetduration<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for Targetduration<'a>
impl<'a> Debug for Targetduration<'a>
Source§impl<'a, Custom> From<Targetduration<'a>> for HlsLine<'a, Custom>where
Custom: CustomTag<'a>,
impl<'a, Custom> From<Targetduration<'a>> for HlsLine<'a, Custom>where
Custom: CustomTag<'a>,
Source§fn from(tag: Targetduration<'a>) -> Self
fn from(tag: Targetduration<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoInnerTag<'a> for Targetduration<'a>
impl<'a> IntoInnerTag<'a> for Targetduration<'a>
Source§fn into_inner(self) -> TagInner<'a>
fn into_inner(self) -> TagInner<'a>
Consume
self and provide TagInner.Source§impl<'a> PartialEq for Targetduration<'a>
impl<'a> PartialEq for Targetduration<'a>
Source§impl<'a> TryFrom<UnknownTag<'a>> for Targetduration<'a>
impl<'a> TryFrom<UnknownTag<'a>> for Targetduration<'a>
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<'a> Freeze for Targetduration<'a>
impl<'a> RefUnwindSafe for Targetduration<'a>
impl<'a> Send for Targetduration<'a>
impl<'a> Sync for Targetduration<'a>
impl<'a> Unpin for Targetduration<'a>
impl<'a> UnsafeUnpin for Targetduration<'a>
impl<'a> UnwindSafe for Targetduration<'a>
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