pub struct Writer<W: Write + Seek = File> { /* private fields */ }Implementations§
Source§impl<W: Write + Seek> Writer<W>
impl<W: Write + Seek> Writer<W>
pub fn new(w: W, options: Options) -> Self
pub fn add_track(&mut self, cfg: TrackConfig) -> Result<usize>
pub fn push(&mut self, track: usize, packet: &Packet) -> Result<()>
pub fn push_timed( &mut self, track: usize, packet: &Packet, duration: u32, ) -> Result<()>
pub fn push_sample( &mut self, track: usize, data: &[u8], pts: i64, duration: Option<u32>, keyframe: bool, ) -> Result<()>
pub fn finish(self) -> Result<W>
Auto Trait Implementations§
impl<W> Freeze for Writer<W>where
W: Freeze,
impl<W> RefUnwindSafe for Writer<W>where
W: RefUnwindSafe,
impl<W> Send for Writer<W>where
W: Send,
impl<W> Sync for Writer<W>where
W: Sync,
impl<W> Unpin for Writer<W>where
W: Unpin,
impl<W> UnsafeUnpin for Writer<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for Writer<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