Trait Mp4VersionedReadable

Source
pub trait Mp4VersionedReadable<F: FlagTrait>: Sized {
    // Required method
    fn versioned_read<'life0, 'async_trait, R>(
        version: u8,
        flags: F,
        reader: &'life0 mut R,
    ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
       where R: 'async_trait + ReadMp4,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn versioned_read<'life0, 'async_trait, R>( version: u8, flags: F, reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4, Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDataOffset

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDefaultSampleDuration

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDefaultSampleFlags

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDefaultSampleSize

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdSampleDescriptionIndex

Source§

impl Mp4VersionedReadable<TrunFlags> for TrunDataOffset

Source§

impl Mp4VersionedReadable<TrunFlags> for TrunFirstSampleFlags

Source§

impl Mp4VersionedReadable<TrunFlags> for TrunSampleCompositionOffset

Source§

impl Mp4VersionedReadable<TrunFlags> for TrunSampleDuration

Source§

impl Mp4VersionedReadable<TrunFlags> for TrunSampleFlags

Source§

impl Mp4VersionedReadable<TrunFlags> for TrunSampleSize

Source§

impl<F: FlagTrait> Mp4VersionedReadable<F> for VersionedSignedU32

Source§

impl<F: FlagTrait> Mp4VersionedReadable<F> for TrunEntry

Source§

impl<F: FlagTrait> Mp4VersionedReadable<F> for TrunOffset

Source§

impl<F: FlagTrait> Mp4VersionedReadable<F> for Mp4DateTime

Source§

impl<F: FlagTrait> Mp4VersionedReadable<F> for Mp4Duration

Source§

impl<F: FlagTrait> Mp4VersionedReadable<F> for VersionedU32U64

Source§

impl<F: FlagTrait, T: Mp4Readable> Mp4VersionedReadable<F> for T

Source§

impl<I, O, T, F> Mp4VersionedReadable<F> for Mp4VersionedOffsetArray<I, O, T>