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 !RefUnwindSafe for VideoEncoderError
impl !UnwindSafe for VideoEncoderError
impl Freeze for VideoEncoderError
impl Unpin for VideoEncoderError
impl UnsafeUnpin 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