#[non_exhaustive]pub enum OpenOutputError {
Show 28 variants
OutOfMemory,
InvalidArgument,
NotFound,
IOError,
PipeError,
BadFileDescriptor,
NotImplemented,
OperationNotPermitted,
PermissionDenied,
Timeout,
EncoderNotFound,
EncoderUnavailable {
name: String,
},
MatchesNoStreams(String),
InvalidLabel(String),
NotContainStream,
UnknownFrameFormat,
InvalidFileIndexInIntput(usize, String),
UnknownError(i32),
InvalidSink,
SeekFunctionMissing,
FormatUnsupported(String),
UnknownPixelFormat(String),
UnknownSampleFormat(String),
InvalidOption(String),
AttachmentRead(String, Error),
AttachmentEmpty(String),
AttachmentTooLarge(String, u64, u64),
AttachmentEmptyMimetype(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OutOfMemory
InvalidArgument
NotFound
IOError
PipeError
BadFileDescriptor
NotImplemented
OperationNotPermitted
PermissionDenied
Timeout
EncoderNotFound
A named encoder could not be opened because the linked FFmpeg build
does not provide it — either it was compiled without that encoder
(e.g. no --enable-libx264) or the name is not a known encoder at all.
Unlike the bare EncoderNotFound errno
mapping, this names the encoder so the fix is actionable. name is the
encoder the caller requested, or the codec the output format guessed
when none was set explicitly.
MatchesNoStreams(String)
InvalidLabel(String)
NotContainStream
UnknownFrameFormat
InvalidFileIndexInIntput(usize, String)
UnknownError(i32)
InvalidSink
SeekFunctionMissing
FormatUnsupported(String)
UnknownPixelFormat(String)
UnknownSampleFormat(String)
InvalidOption(String)
A builder option carried an invalid value (e.g. a malformed
set_force_key_frames spec, an out-of-range set_io_buffer_size).
Setters store values as given and defer validation to open time, so
a bad value surfaces here instead of panicking in the setter or
forcing a Result into the middle of a builder chain.
AttachmentRead(String, Error)
AttachmentEmpty(String)
AttachmentTooLarge(String, u64, u64)
AttachmentEmptyMimetype(String)
Trait Implementations§
Source§impl Debug for OpenOutputError
impl Debug for OpenOutputError
Source§impl Display for OpenOutputError
impl Display for OpenOutputError
Source§impl Error for OpenOutputError
impl Error for OpenOutputError
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
use the Display impl or to_string()