pub enum VideoEncoderError {
WindowsError(Error),
FrameSendError(SendError<Option<(VideoEncoderSource, TimeSpan)>>),
AudioSendError(SendError<Option<(AudioEncoderSource, TimeSpan)>>),
VideoDisabled,
AudioDisabled,
IoError(Error),
UnsupportedFrameFormat(ColorFormat),
}Expand description
Errors emitted by VideoEncoder during configuration, streaming, or finalization.
Variantsยง
WindowsError(Error)
A Windows Runtime/Win32 API call failed.
Wraps windows::core::Error.
FrameSendError(SendError<Option<(VideoEncoderSource, TimeSpan)>>)
Failed to send a video sample into the internal pipeline.
Typically indicates the internal channel is closed.
AudioSendError(SendError<Option<(AudioEncoderSource, TimeSpan)>>)
Failed to send an audio sample into the internal pipeline.
Typically indicates the internal channel is closed.
VideoDisabled
Video encoding was disabled via VideoSettingsBuilder::disabled.
AudioDisabled
Audio encoding was disabled via AudioSettingsBuilder::disabled.
IoError(Error)
An I/O error occurred during file creation or writing.
Wraps std::io::Error.
UnsupportedFrameFormat(ColorFormat)
The provided frame color format is unsupported by the encoder path.
Trait Implementationsยง
Sourceยงimpl Debug for VideoEncoderError
impl Debug for VideoEncoderError
Sourceยงimpl Display for VideoEncoderError
impl Display for VideoEncoderError
Sourceยงimpl Error for VideoEncoderError
impl Error for VideoEncoderError
Sourceยงfn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 ยท Sourceยงfn description(&self) -> &str
fn description(&self) -> &str
๐Deprecated since 1.42.0:
use the Display impl or to_string()
Sourceยงimpl From<Error> for VideoEncoderError
impl From<Error> for VideoEncoderError
Sourceยงimpl From<Error> for VideoEncoderError
impl From<Error> for VideoEncoderError
Sourceยงimpl From<SendError<Option<(AudioEncoderSource, TimeSpan)>>> for VideoEncoderError
impl From<SendError<Option<(AudioEncoderSource, TimeSpan)>>> for VideoEncoderError
Sourceยงimpl From<SendError<Option<(VideoEncoderSource, TimeSpan)>>> for VideoEncoderError
impl From<SendError<Option<(VideoEncoderSource, TimeSpan)>>> for VideoEncoderError
impl Send for VideoEncoderError
impl Sync for VideoEncoderError
Auto Trait Implementationsยง
impl Freeze for VideoEncoderError
impl !RefUnwindSafe for VideoEncoderError
impl Unpin for VideoEncoderError
impl UnsafeUnpin for VideoEncoderError
impl !UnwindSafe for VideoEncoderError
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