pub struct Fragment {
pub data: Bytes,
pub independent: bool,
pub duration: Duration,
}Expand description
One moof+mdat fragment, with the metadata a segmenting consumer needs.
Fields§
§data: BytesThe encoded moof+mdat bytes.
independent: boolA fragment that begins at a sync sample, so it can start a segment. Video fragments are independent only at a GOP boundary (keyframe); audio fragments are always independent.
duration: DurationPresentation duration of the fragment.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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