pub struct Segment {
pub seq: u64,
pub duration: f64,
pub uri: String,
pub discontinuity: bool,
pub parts: Vec<Part>,
}Available on crate feature
hls only.Expand description
One segment entry in a media playlist.
Fields§
§seq: u64Media sequence number (monotonic, never reused).
duration: f64Segment duration in seconds.
uri: StringSegment URI (relative path written under the stream’s storage prefix).
discontinuity: boolWhether a discontinuity precedes this segment.
parts: Vec<Part>The LL-HLS partial segments that make up this segment (empty for plain
HLS). Rendered as #EXT-X-PART lines before the segment’s #EXTINF.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more