[−][src]Struct hls_m3u8::tags::ExtXStart
This tag indicates a preferred point at which to start playing a Playlist.
By default, clients should start playback at this point when beginning a playback session.
Methods
impl ExtXStart
[src]
#[must_use]pub fn time_offset(&self) -> Float
[src]
The time offset of the MediaSegment
s in the playlist.
Example
use hls_m3u8::types::Float; let mut start = ExtXStart::new(Float::new(20.123456)); start.set_time_offset(Float::new(1.0)); assert_eq!(start.time_offset(), Float::new(1.0));
pub fn set_time_offset(&mut self, value: Float) -> &mut Self
[src]
The time offset of the MediaSegment
s in the playlist.
Example
use hls_m3u8::types::Float; let mut start = ExtXStart::new(Float::new(20.123456)); start.set_time_offset(Float::new(1.0)); assert_eq!(start.time_offset(), Float::new(1.0));
#[must_use]pub fn is_precise(&self) -> bool
[src]
Whether clients should not render media stream whose presentation times are prior to the specified time offset.
Example
use hls_m3u8::types::Float; let mut start = ExtXStart::new(Float::new(20.123456)); start.set_is_precise(true); assert_eq!(start.is_precise(), true);
pub fn set_is_precise(&mut self, value: bool) -> &mut Self
[src]
Whether clients should not render media stream whose presentation times are prior to the specified time offset.
Example
use hls_m3u8::types::Float; let mut start = ExtXStart::new(Float::new(20.123456)); start.set_is_precise(true); assert_eq!(start.is_precise(), true);
impl ExtXStart
[src]
#[must_use]pub const fn new(time_offset: Float) -> Self
[src]
Makes a new ExtXStart
tag.
Example
use hls_m3u8::types::Float; let start = ExtXStart::new(Float::new(20.123456));
#[must_use]pub const fn with_precise(time_offset: Float, is_precise: bool) -> Self
[src]
Trait Implementations
impl Clone for ExtXStart
[src]
impl Copy for ExtXStart
[src]
impl Debug for ExtXStart
[src]
impl Display for ExtXStart
[src]
impl Eq for ExtXStart
[src]
impl FromStr for ExtXStart
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<Self, Self::Err>
[src]
impl Hash for ExtXStart
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ExtXStart
[src]
fn cmp(&self, other: &ExtXStart) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ExtXStart> for ExtXStart
[src]
impl PartialOrd<ExtXStart> for ExtXStart
[src]
fn partial_cmp(&self, other: &ExtXStart) -> Option<Ordering>
[src]
fn lt(&self, other: &ExtXStart) -> bool
[src]
fn le(&self, other: &ExtXStart) -> bool
[src]
fn gt(&self, other: &ExtXStart) -> bool
[src]
fn ge(&self, other: &ExtXStart) -> bool
[src]
impl StructuralEq for ExtXStart
[src]
impl StructuralPartialEq for ExtXStart
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtXStart
impl Send for ExtXStart
impl Sync for ExtXStart
impl Unpin for ExtXStart
impl UnwindSafe for ExtXStart
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,