#[non_exhaustive]pub struct ClipTimestampRange { /* private fields */ }
Expand description
The range of timestamps for which to return fragments.
Implementations§
source§impl ClipTimestampRange
impl ClipTimestampRange
sourcepub fn start_timestamp(&self) -> Option<&DateTime>
pub fn start_timestamp(&self) -> Option<&DateTime>
The starting timestamp in the range of timestamps for which to return fragments.
Only fragments that start exactly at or after StartTimestamp
are included in the session. Fragments that start before StartTimestamp
and continue past it aren't included in the session. If FragmentSelectorType
is SERVER_TIMESTAMP
, the StartTimestamp
must be later than the stream head.
sourcepub fn end_timestamp(&self) -> Option<&DateTime>
pub fn end_timestamp(&self) -> Option<&DateTime>
The end of the timestamp range for the requested media.
This value must be within 24 hours of the specified StartTimestamp
, and it must be later than the StartTimestamp
value. If FragmentSelectorType
for the request is SERVER_TIMESTAMP
, this value must be in the past.
This value is inclusive. The EndTimestamp
is compared to the (starting) timestamp of the fragment. Fragments that start before the EndTimestamp
value and continue past it are included in the session.
source§impl ClipTimestampRange
impl ClipTimestampRange
sourcepub fn builder() -> ClipTimestampRangeBuilder
pub fn builder() -> ClipTimestampRangeBuilder
Creates a new builder-style object to manufacture ClipTimestampRange
.
Trait Implementations§
source§impl Clone for ClipTimestampRange
impl Clone for ClipTimestampRange
source§fn clone(&self) -> ClipTimestampRange
fn clone(&self) -> ClipTimestampRange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClipTimestampRange
impl Debug for ClipTimestampRange
source§impl PartialEq<ClipTimestampRange> for ClipTimestampRange
impl PartialEq<ClipTimestampRange> for ClipTimestampRange
source§fn eq(&self, other: &ClipTimestampRange) -> bool
fn eq(&self, other: &ClipTimestampRange) -> bool
self
and other
values to be equal, and is used
by ==
.