pub enum Chunk {
Init(Bytes),
Fragment(Fragment),
}Expand description
One emitted CMAF chunk: the init segment, then media fragments.
The two carry different metadata, so they are separate variants rather than one
struct with fields that are meaningless on the init. The set is closed by the
container format, so a match on it stays exhaustive.
Variants§
Init(Bytes)
The merged init segment (ftyp + multi-track moov), emitted once, first.
Fragment(Fragment)
One moof+mdat fragment.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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