pub struct Mp4Writer<W> { /* private fields */ }Implementations§
Source§impl<W: AsyncWrite + Unpin> Mp4Writer<W>
impl<W: AsyncWrite + Unpin> Mp4Writer<W>
pub fn new(writer: W) -> Self
pub fn current_offset(&self) -> usize
pub async fn flush(&mut self) -> Result<(), WriteError>
pub async fn write_atom_header( &mut self, atom_type: FourCC, data_size: usize, ) -> Result<(), WriteError>
pub async fn write_leaf_atom( &mut self, atom_type: FourCC, data: AtomData, ) -> Result<(), WriteError>
pub async fn write_atom(&mut self, atom: Atom) -> Result<(), WriteError>
pub async fn write_raw(&mut self, data: &[u8]) -> Result<(), WriteError>
Auto Trait Implementations§
impl<W> Freeze for Mp4Writer<W>where
W: Freeze,
impl<W> RefUnwindSafe for Mp4Writer<W>where
W: RefUnwindSafe,
impl<W> Send for Mp4Writer<W>where
W: Send,
impl<W> Sync for Mp4Writer<W>where
W: Sync,
impl<W> Unpin for Mp4Writer<W>where
W: Unpin,
impl<W> UnsafeUnpin for Mp4Writer<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for Mp4Writer<W>where
W: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more