Struct sunk::Hls

source ·
pub struct Hls {
    pub inc: usize,
    pub url: String,
}
Expand description

A slice of a media for use in a HLS playlist.

Fields

inc: usize

The duration increment of the slice.

url: String

The path of the slice relative to the server.

Implementations

Fetches the raw bytes of the slice from the Client.

Will likely error if the Client is not the same one that the HLS slice was generated from.

Trait Implementations

Formats the value using the given formatter. 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.