Trait Mp4Readable

Source
pub trait Mp4Readable: Sized {
    // Required method
    fn read<'life0, 'async_trait, R>(
        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 read<'life0, 'async_trait, R>( 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.

Implementations on Foreign Types§

Source§

impl Mp4Readable for i8

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for i16

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for i32

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for i64

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for u8

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for u16

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for u32

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for u64

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for String

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl Mp4Readable for Uuid

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<A: Mp4Readable + Send + Sync> Mp4Readable for (A,)

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<A: Mp4Readable + Send + Sync, B: Mp4Readable + Send + Sync> Mp4Readable for (A, B)

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<A: Mp4Readable + Send + Sync, B: Mp4Readable + Send + Sync, C: Mp4Readable + Send + Sync> Mp4Readable for (A, B, C)

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<A: Mp4Readable + Send + Sync, B: Mp4Readable + Send + Sync, C: Mp4Readable + Send + Sync, D: Mp4Readable + Send + Sync> Mp4Readable for (A, B, C, D)

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<A: Mp4Readable + Send + Sync, B: Mp4Readable + Send + Sync, C: Mp4Readable + Send + Sync, D: Mp4Readable + Send + Sync, E: Mp4Readable + Send + Sync> Mp4Readable for (A, B, C, D, E)

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<A: Mp4Readable + Send + Sync, B: Mp4Readable + Send + Sync, C: Mp4Readable + Send + Sync, D: Mp4Readable + Send + Sync, E: Mp4Readable + Send + Sync, F: Mp4Readable + Send + Sync> Mp4Readable for (A, B, C, D, E, F)

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<A: Mp4Readable + Send + Sync, B: Mp4Readable + Send + Sync, C: Mp4Readable + Send + Sync, D: Mp4Readable + Send + Sync, E: Mp4Readable + Send + Sync, F: Mp4Readable + Send + Sync, G: Mp4Readable + Send + Sync> Mp4Readable for (A, B, C, D, E, F, G)

Source§

fn read<'life0, 'async_trait, R>( 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,

Source§

impl<Frac> Mp4Readable for FixedI16<Frac>

Source§

fn read<'life0, 'async_trait, R>( reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4 + ?Sized, Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<Frac> Mp4Readable for FixedI32<Frac>

Source§

fn read<'life0, 'async_trait, R>( reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4 + ?Sized, Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<const N: usize, T: Mp4Readable + Send + Sync + Debug> Mp4Readable for [T; N]

Source§

fn read<'life0, 'async_trait, R>( 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,

Implementors§