pub enum EncoderStatus {
NeedMoreData,
EnoughData,
LimitReached,
Encoded,
Failure,
NotReady,
}
Expand description
Status that can be returned by Context
functions.
Variants§
NeedMoreData
The encoder needs more data to produce an output packet.
May be emitted by Context::receive_packet()
when frame reordering is
enabled.
EnoughData
There are enough frames in the queue.
May be emitted by Context::send_frame()
when trying to send a frame
after the encoder has been flushed.
LimitReached
The encoder has already produced the number of frames requested.
May be emitted by Context::receive_packet()
after a flush request had
been processed or the frame limit had been reached.
Encoded
A frame had been encoded but not emitted yet.
Failure
Generic fatal error.
NotReady
A frame was encoded in the first pass of a 2-pass encode, but its stats
data was not retrieved with Context::twopass_out()
, or not enough
stats data was provided in the second pass of a 2-pass encode to encode
the next frame.
Trait Implementations§
Source§impl Clone for EncoderStatus
impl Clone for EncoderStatus
Source§fn clone(&self) -> EncoderStatus
fn clone(&self) -> EncoderStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EncoderStatus
impl Debug for EncoderStatus
Source§impl Display for EncoderStatus
impl Display for EncoderStatus
Source§impl Error for EncoderStatus
impl Error for EncoderStatus
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for EncoderStatus
impl PartialEq for EncoderStatus
impl Copy for EncoderStatus
impl Eq for EncoderStatus
impl StructuralPartialEq for EncoderStatus
Auto Trait Implementations§
impl Freeze for EncoderStatus
impl RefUnwindSafe for EncoderStatus
impl Send for EncoderStatus
impl Sync for EncoderStatus
impl Unpin for EncoderStatus
impl UnwindSafe for EncoderStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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