[−][src]Struct hls_m3u8::MediaSegment
Media segment.
Methods
impl MediaSegment
[src]
pub fn uri(&self) -> &SingleLineString
[src]
Returns the URI of the media segment.
pub fn inf_tag(&self) -> &ExtInf
[src]
Returns the EXT-X-INF
tag associated with the media segment.
pub fn byte_range_tag(&self) -> Option<ExtXByteRange>
[src]
Returns the EXT-X-BYTERANGE
tag associated with the media segment.
pub fn date_range_tag(&self) -> Option<&ExtXDateRange>
[src]
Returns the EXT-X-DATERANGE
tag associated with the media segment.
pub fn discontinuity_tag(&self) -> Option<ExtXDiscontinuity>
[src]
Returns the EXT-X-DISCONTINUITY
tag associated with the media segment.
pub fn program_date_time_tag(&self) -> Option<&ExtXProgramDateTime>
[src]
Returns the EXT-X-PROGRAM-DATE-TIME
tag associated with the media segment.
pub fn map_tag(&self) -> Option<&ExtXMap>
[src]
Returns the EXT-X-MAP
tag associated with the media segment.
pub fn key_tags(&self) -> &[ExtXKey]
[src]
Returns the EXT-X-KEY
tags associated with the media segment.
pub fn requires_version(&self) -> ProtocolVersion
[src]
Returns the protocol compatibility version that this segment requires.
Trait Implementations
impl Clone for MediaSegment
[src]
fn clone(&self) -> MediaSegment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MediaSegment
[src]
impl Display for MediaSegment
[src]
Auto Trait Implementations
impl Unpin for MediaSegment
impl Sync for MediaSegment
impl Send for MediaSegment
impl UnwindSafe for MediaSegment
impl RefUnwindSafe for MediaSegment
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,