Struct sunk::HlsPlaylist

source ·
pub struct HlsPlaylist {
    pub extension: String,
    pub version: usize,
    pub target_duration: usize,
    /* private fields */
}
Expand description

A HLS playlist file.

Fields

extension: String

The extension of the playlist metadata. Typically M3U or M3U8.

version: usize

The version of the HLS specification.

target_duration: usize

The target duration for HLS slices.

Implementations

Returns the number of slices in the playlist.

Returns the total duration of the playlist.

Trait Implementations

Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.