Struct Encoder
pub struct Encoder<W: Write> { /* private fields */ }
YUV4MPEG2 encoder.
Implementations
impl<W: Write> Encoder<W>
fn write_frame(&mut self, frame: &Frame<'_>) -> Result<(), Error>Write next frame to the stream.
Auto Trait Implementations
impl<W> Freeze for Encoder<W>
where
W: Freeze,
impl<W> RefUnwindSafe for Encoder<W>
where
W: RefUnwindSafe,
impl<W> Send for Encoder<W>
where
W: Send,
impl<W> Sync for Encoder<W>
where
W: Sync,
impl<W> Unpin for Encoder<W>
where
W: Unpin,
impl<W> UnsafeUnpin for Encoder<W>
where
W: UnsafeUnpin,
impl<W> UnwindSafe for Encoder<W>
where
W: UnwindSafe,
Blanket Implementations
impl<T> Any for Encoder<W>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Encoder<W>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Encoder<W>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Encoder<W>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Encoder<W>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Encoder<W>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Encoder<W>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>