Struct hls_m3u8::tags::ExtInf [−][src]
pub struct ExtInf { /* fields omitted */ }
Methods
impl ExtInf
[src]
impl ExtInf
pub fn new(duration: Duration) -> Self
[src]
pub fn new(duration: Duration) -> Self
Makes a new ExtInf
tag.
pub fn with_title(duration: Duration, title: SingleLineString) -> Self
[src]
pub fn with_title(duration: Duration, title: SingleLineString) -> Self
Makes a new ExtInf
tag with the given title.
pub fn duration(&self) -> Duration
[src]
pub fn duration(&self) -> Duration
Returns the duration of the associated media segment.
pub fn title(&self) -> Option<&SingleLineString>
[src]
pub fn title(&self) -> Option<&SingleLineString>
Returns the title of the associated media segment.
pub fn requires_version(&self) -> ProtocolVersion
[src]
pub fn requires_version(&self) -> ProtocolVersion
Returns the protocol compatibility version that this tag requires.
Trait Implementations
impl Debug for ExtInf
[src]
impl Debug for ExtInf
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ExtInf
[src]
impl Clone for ExtInf
fn clone(&self) -> ExtInf
[src]
fn clone(&self) -> ExtInf
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ExtInf
[src]
impl PartialEq for ExtInf
fn eq(&self, other: &ExtInf) -> bool
[src]
fn eq(&self, other: &ExtInf) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExtInf) -> bool
[src]
fn ne(&self, other: &ExtInf) -> bool
This method tests for !=
.
impl Eq for ExtInf
[src]
impl Eq for ExtInf
impl Hash for ExtInf
[src]
impl Hash for ExtInf
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for ExtInf
[src]
impl Display for ExtInf
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for ExtInf
[src]
impl FromStr for ExtInf
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
fn from_str(s: &str) -> Result<Self>
Parses a string s
to return a value of this type. Read more
impl From<ExtInf> for MediaSegmentTag
[src]
impl From<ExtInf> for MediaSegmentTag