Enum DynBox

Source
pub enum DynBox {
Show 58 variants Ftyp(Box<Ftyp>), Moov(Box<Moov>), Mvhd(Box<Mvhd>), Mvex(Box<Mvex>), Trak(Box<Trak>), Trex(Box<Trex>), Mehd(Box<Mehd>), Mdia(Box<Mdia>), Tkhd(Box<Tkhd>), Edts(Box<Edts>), Elst(Box<Elst>), Mdhd(Box<Mdhd>), Minf(Box<Minf>), Hdlr(Box<Hdlr>), Dinf(Box<Dinf>), Stbl(Box<Stbl>), Hmhd(Box<Hmhd>), Nmhd(Box<Nmhd>), Smhd(Box<Smhd>), Vmhd(Box<Vmhd>), Dref(Box<Dref>), Stsd(Box<Stsd>), Stsz(Box<Stsz>), Stsc(Box<Stsc>), Stco(Box<Stco>), Co64(Box<Co64>), Stts(Box<Stts>), Stss(Box<Stss>), Stz2(Box<Stz2>), Stsh(Box<Stsh>), Ctts(Box<Ctts>), Stdp(Box<Stdp>), Sbgp(Box<Sbgp>), Subs(Box<Subs>), Padb(Box<Padb>), Sdtp(Box<Sdtp>), Url(Box<Url>), Avc1(Box<Avc1>), Clap(Box<Clap>), Pasp(Box<Pasp>), AvcC(Box<AvcC>), Btrt(Box<Btrt>), Mp4a(Box<Mp4a>), Esds(Box<Esds>), Moof(Box<Moof>), Mfhd(Box<Mfhd>), Traf(Box<Traf>), Tfhd(Box<Tfhd>), Tfdt(Box<Tfdt>), Trun(Box<Trun>), Mdat(Box<Mdat>), Av01(Box<Av01>), Av1C(Box<Av1C>), Colr(Box<Colr>), Hev1(Box<Hev1>), HvcC(Box<HvcC>), Opus(Box<Opus>), Unknown((BoxHeader, Bytes)),
}

Variants§

§

Ftyp(Box<Ftyp>)

§

Moov(Box<Moov>)

§

Mvhd(Box<Mvhd>)

§

Mvex(Box<Mvex>)

§

Trak(Box<Trak>)

§

Trex(Box<Trex>)

§

Mehd(Box<Mehd>)

§

Mdia(Box<Mdia>)

§

Tkhd(Box<Tkhd>)

§

Edts(Box<Edts>)

§

Elst(Box<Elst>)

§

Mdhd(Box<Mdhd>)

§

Minf(Box<Minf>)

§

Hdlr(Box<Hdlr>)

§

Dinf(Box<Dinf>)

§

Stbl(Box<Stbl>)

§

Hmhd(Box<Hmhd>)

§

Nmhd(Box<Nmhd>)

§

Smhd(Box<Smhd>)

§

Vmhd(Box<Vmhd>)

§

Dref(Box<Dref>)

§

Stsd(Box<Stsd>)

§

Stsz(Box<Stsz>)

§

Stsc(Box<Stsc>)

§

Stco(Box<Stco>)

§

Co64(Box<Co64>)

§

Stts(Box<Stts>)

§

Stss(Box<Stss>)

§

Stz2(Box<Stz2>)

§

Stsh(Box<Stsh>)

§

Ctts(Box<Ctts>)

§

Stdp(Box<Stdp>)

§

Sbgp(Box<Sbgp>)

§

Subs(Box<Subs>)

§

Padb(Box<Padb>)

§

Sdtp(Box<Sdtp>)

§

Url(Box<Url>)

§

Avc1(Box<Avc1>)

§

Clap(Box<Clap>)

§

Pasp(Box<Pasp>)

§

AvcC(Box<AvcC>)

§

Btrt(Box<Btrt>)

§

Mp4a(Box<Mp4a>)

§

Esds(Box<Esds>)

§

Moof(Box<Moof>)

§

Mfhd(Box<Mfhd>)

§

Traf(Box<Traf>)

§

Tfhd(Box<Tfhd>)

§

Tfdt(Box<Tfdt>)

§

Trun(Box<Trun>)

§

Mdat(Box<Mdat>)

§

Av01(Box<Av01>)

§

Av1C(Box<Av1C>)

§

Colr(Box<Colr>)

§

Hev1(Box<Hev1>)

§

HvcC(Box<HvcC>)

§

Opus(Box<Opus>)

§

Unknown((BoxHeader, Bytes))

Implementations§

Source§

impl DynBox

Source

pub fn size(&self) -> u64

Source

pub fn mux<W: Write>(&self, writer: &mut W) -> Result<()>

Source

pub fn demux(reader: &mut Cursor<Bytes>) -> Result<Self>

Source

pub fn name(&self) -> &str

Source

pub fn as_ftyp(&self) -> Option<&Ftyp>

Source

pub fn as_moov(&self) -> Option<&Moov>

Source

pub fn as_mvhd(&self) -> Option<&Mvhd>

Source

pub fn as_mvex(&self) -> Option<&Mvex>

Source

pub fn as_trak(&self) -> Option<&Trak>

Source

pub fn as_trex(&self) -> Option<&Trex>

Source

pub fn as_mehd(&self) -> Option<&Mehd>

Source

pub fn as_mdia(&self) -> Option<&Mdia>

Source

pub fn as_tkhd(&self) -> Option<&Tkhd>

Source

pub fn as_edts(&self) -> Option<&Edts>

Source

pub fn as_elst(&self) -> Option<&Elst>

Source

pub fn as_mdhd(&self) -> Option<&Mdhd>

Source

pub fn as_minf(&self) -> Option<&Minf>

Source

pub fn as_hdlr(&self) -> Option<&Hdlr>

Source

pub fn as_dinf(&self) -> Option<&Dinf>

Source

pub fn as_stbl(&self) -> Option<&Stbl>

Source

pub fn as_hmhd(&self) -> Option<&Hmhd>

Source

pub fn as_nmhd(&self) -> Option<&Nmhd>

Source

pub fn as_smhd(&self) -> Option<&Smhd>

Source

pub fn as_vmhd(&self) -> Option<&Vmhd>

Source

pub fn as_dref(&self) -> Option<&Dref>

Source

pub fn as_stsd(&self) -> Option<&Stsd>

Source

pub fn as_stsz(&self) -> Option<&Stsz>

Source

pub fn as_stsc(&self) -> Option<&Stsc>

Source

pub fn as_stco(&self) -> Option<&Stco>

Source

pub fn as_co64(&self) -> Option<&Co64>

Source

pub fn as_stts(&self) -> Option<&Stts>

Source

pub fn as_stss(&self) -> Option<&Stss>

Source

pub fn as_stz2(&self) -> Option<&Stz2>

Source

pub fn as_stsh(&self) -> Option<&Stsh>

Source

pub fn as_ctts(&self) -> Option<&Ctts>

Source

pub fn as_stdp(&self) -> Option<&Stdp>

Source

pub fn as_sbgp(&self) -> Option<&Sbgp>

Source

pub fn as_subs(&self) -> Option<&Subs>

Source

pub fn as_padb(&self) -> Option<&Padb>

Source

pub fn as_sdtp(&self) -> Option<&Sdtp>

Source

pub fn as_url(&self) -> Option<&Url>

Source

pub fn as_avc1(&self) -> Option<&Avc1>

Source

pub fn as_clap(&self) -> Option<&Clap>

Source

pub fn as_pasp(&self) -> Option<&Pasp>

Source

pub fn as_avcc(&self) -> Option<&AvcC>

Source

pub fn as_btrt(&self) -> Option<&Btrt>

Source

pub fn as_mp4a(&self) -> Option<&Mp4a>

Source

pub fn as_esds(&self) -> Option<&Esds>

Source

pub fn as_moof(&self) -> Option<&Moof>

Source

pub fn as_mfhd(&self) -> Option<&Mfhd>

Source

pub fn as_traf(&self) -> Option<&Traf>

Source

pub fn as_tfhd(&self) -> Option<&Tfhd>

Source

pub fn as_tfdt(&self) -> Option<&Tfdt>

Source

pub fn as_trun(&self) -> Option<&Trun>

Source

pub fn as_mdat(&self) -> Option<&Mdat>

Source

pub fn as_av01(&self) -> Option<&Av01>

Source

pub fn as_av1c(&self) -> Option<&Av1C>

Source

pub fn as_colr(&self) -> Option<&Colr>

Source

pub fn as_hev1(&self) -> Option<&Hev1>

Source

pub fn as_hvcc(&self) -> Option<&HvcC>

Source

pub fn as_opus(&self) -> Option<&Opus>

Trait Implementations§

Source§

impl Clone for DynBox

Source§

fn clone(&self) -> DynBox

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DynBox

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Av01> for DynBox

Source§

fn from(box_: Av01) -> Self

Converts to this type from the input type.
Source§

impl From<Av1C> for DynBox

Source§

fn from(box_: Av1C) -> Self

Converts to this type from the input type.
Source§

impl From<Avc1> for DynBox

Source§

fn from(box_: Avc1) -> Self

Converts to this type from the input type.
Source§

impl From<AvcC> for DynBox

Source§

fn from(box_: AvcC) -> Self

Converts to this type from the input type.
Source§

impl From<Btrt> for DynBox

Source§

fn from(box_: Btrt) -> Self

Converts to this type from the input type.
Source§

impl From<Clap> for DynBox

Source§

fn from(box_: Clap) -> Self

Converts to this type from the input type.
Source§

impl From<Co64> for DynBox

Source§

fn from(box_: Co64) -> Self

Converts to this type from the input type.
Source§

impl From<Colr> for DynBox

Source§

fn from(box_: Colr) -> Self

Converts to this type from the input type.
Source§

impl From<Ctts> for DynBox

Source§

fn from(box_: Ctts) -> Self

Converts to this type from the input type.
Source§

impl From<Dinf> for DynBox

Source§

fn from(box_: Dinf) -> Self

Converts to this type from the input type.
Source§

impl From<Dref> for DynBox

Source§

fn from(box_: Dref) -> Self

Converts to this type from the input type.
Source§

impl From<Edts> for DynBox

Source§

fn from(box_: Edts) -> Self

Converts to this type from the input type.
Source§

impl From<Elst> for DynBox

Source§

fn from(box_: Elst) -> Self

Converts to this type from the input type.
Source§

impl From<Esds> for DynBox

Source§

fn from(box_: Esds) -> Self

Converts to this type from the input type.
Source§

impl From<Ftyp> for DynBox

Source§

fn from(box_: Ftyp) -> Self

Converts to this type from the input type.
Source§

impl From<Hdlr> for DynBox

Source§

fn from(box_: Hdlr) -> Self

Converts to this type from the input type.
Source§

impl From<Hev1> for DynBox

Source§

fn from(box_: Hev1) -> Self

Converts to this type from the input type.
Source§

impl From<Hmhd> for DynBox

Source§

fn from(box_: Hmhd) -> Self

Converts to this type from the input type.
Source§

impl From<HvcC> for DynBox

Source§

fn from(box_: HvcC) -> Self

Converts to this type from the input type.
Source§

impl From<Mdat> for DynBox

Source§

fn from(box_: Mdat) -> Self

Converts to this type from the input type.
Source§

impl From<Mdhd> for DynBox

Source§

fn from(box_: Mdhd) -> Self

Converts to this type from the input type.
Source§

impl From<Mdia> for DynBox

Source§

fn from(box_: Mdia) -> Self

Converts to this type from the input type.
Source§

impl From<Mehd> for DynBox

Source§

fn from(box_: Mehd) -> Self

Converts to this type from the input type.
Source§

impl From<Mfhd> for DynBox

Source§

fn from(box_: Mfhd) -> Self

Converts to this type from the input type.
Source§

impl From<Minf> for DynBox

Source§

fn from(box_: Minf) -> Self

Converts to this type from the input type.
Source§

impl From<Moof> for DynBox

Source§

fn from(box_: Moof) -> Self

Converts to this type from the input type.
Source§

impl From<Moov> for DynBox

Source§

fn from(box_: Moov) -> Self

Converts to this type from the input type.
Source§

impl From<Mp4a> for DynBox

Source§

fn from(box_: Mp4a) -> Self

Converts to this type from the input type.
Source§

impl From<Mvex> for DynBox

Source§

fn from(box_: Mvex) -> Self

Converts to this type from the input type.
Source§

impl From<Mvhd> for DynBox

Source§

fn from(box_: Mvhd) -> Self

Converts to this type from the input type.
Source§

impl From<Nmhd> for DynBox

Source§

fn from(box_: Nmhd) -> Self

Converts to this type from the input type.
Source§

impl From<Opus> for DynBox

Source§

fn from(box_: Opus) -> Self

Converts to this type from the input type.
Source§

impl From<Padb> for DynBox

Source§

fn from(box_: Padb) -> Self

Converts to this type from the input type.
Source§

impl From<Pasp> for DynBox

Source§

fn from(box_: Pasp) -> Self

Converts to this type from the input type.
Source§

impl From<Sbgp> for DynBox

Source§

fn from(box_: Sbgp) -> Self

Converts to this type from the input type.
Source§

impl From<Sdtp> for DynBox

Source§

fn from(box_: Sdtp) -> Self

Converts to this type from the input type.
Source§

impl From<Smhd> for DynBox

Source§

fn from(box_: Smhd) -> Self

Converts to this type from the input type.
Source§

impl From<Stbl> for DynBox

Source§

fn from(box_: Stbl) -> Self

Converts to this type from the input type.
Source§

impl From<Stco> for DynBox

Source§

fn from(box_: Stco) -> Self

Converts to this type from the input type.
Source§

impl From<Stdp> for DynBox

Source§

fn from(box_: Stdp) -> Self

Converts to this type from the input type.
Source§

impl From<Stsc> for DynBox

Source§

fn from(box_: Stsc) -> Self

Converts to this type from the input type.
Source§

impl From<Stsd> for DynBox

Source§

fn from(box_: Stsd) -> Self

Converts to this type from the input type.
Source§

impl From<Stsh> for DynBox

Source§

fn from(box_: Stsh) -> Self

Converts to this type from the input type.
Source§

impl From<Stss> for DynBox

Source§

fn from(box_: Stss) -> Self

Converts to this type from the input type.
Source§

impl From<Stsz> for DynBox

Source§

fn from(box_: Stsz) -> Self

Converts to this type from the input type.
Source§

impl From<Stts> for DynBox

Source§

fn from(box_: Stts) -> Self

Converts to this type from the input type.
Source§

impl From<Stz2> for DynBox

Source§

fn from(box_: Stz2) -> Self

Converts to this type from the input type.
Source§

impl From<Subs> for DynBox

Source§

fn from(box_: Subs) -> Self

Converts to this type from the input type.
Source§

impl From<Tfdt> for DynBox

Source§

fn from(box_: Tfdt) -> Self

Converts to this type from the input type.
Source§

impl From<Tfhd> for DynBox

Source§

fn from(box_: Tfhd) -> Self

Converts to this type from the input type.
Source§

impl From<Tkhd> for DynBox

Source§

fn from(box_: Tkhd) -> Self

Converts to this type from the input type.
Source§

impl From<Traf> for DynBox

Source§

fn from(box_: Traf) -> Self

Converts to this type from the input type.
Source§

impl From<Trak> for DynBox

Source§

fn from(box_: Trak) -> Self

Converts to this type from the input type.
Source§

impl From<Trex> for DynBox

Source§

fn from(box_: Trex) -> Self

Converts to this type from the input type.
Source§

impl From<Trun> for DynBox

Source§

fn from(box_: Trun) -> Self

Converts to this type from the input type.
Source§

impl From<Url> for DynBox

Source§

fn from(box_: Url) -> Self

Converts to this type from the input type.
Source§

impl From<Vmhd> for DynBox

Source§

fn from(box_: Vmhd) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DynBox

Source§

fn eq(&self, other: &DynBox) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for DynBox

Auto Trait Implementations§

§

impl !Freeze for DynBox

§

impl RefUnwindSafe for DynBox

§

impl Send for DynBox

§

impl Sync for DynBox

§

impl Unpin for DynBox

§

impl UnwindSafe for DynBox

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.