#[repr(C)]pub struct moq_container {
pub kind: u32,
pub init: *const u8,
pub init_len: usize,
}Expand description
The container of a video or audio rendition, plus whatever that container needs to describe itself.
Zeroing this struct means MOQ_CONTAINER_KIND_LEGACY with no init segment,
which is what a rendition written by moq_publish_media carries.
Fields§
§kind: u32moq_container_kind discriminant.
init: *const u8The CMAF init segment (ftyp+moov), or NULL.
Read only when kind is MOQ_CONTAINER_KIND_CMAF, where it is required.
init_len: usizeTrait Implementations§
Source§impl Clone for moq_container
impl Clone for moq_container
Source§fn clone(&self) -> moq_container
fn clone(&self) -> moq_container
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for moq_container
Auto Trait Implementations§
impl !Send for moq_container
impl !Sync for moq_container
impl Freeze for moq_container
impl RefUnwindSafe for moq_container
impl Unpin for moq_container
impl UnsafeUnpin for moq_container
impl UnwindSafe for moq_container
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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