#[non_exhaustive]pub enum AllocOutputContextError {
OutOfMemory,
InvalidArgument,
NotFound,
IOError,
PipeError,
BadFileDescriptor,
NotImplemented,
OperationNotPermitted,
PermissionDenied,
Timeout,
UnknownError(i32),
}Expand description
Errors from allocating an output format context
(avformat_alloc_output_context2).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OutOfMemory
Memory allocation failed (AVERROR(ENOMEM)).
InvalidArgument
FFmpeg rejected an argument as invalid (AVERROR(EINVAL)).
NotFound
The file or stream does not exist (AVERROR(ENOENT)).
IOError
A low-level I/O error occurred (AVERROR(EIO)).
PipeError
The stream or data connection was broken (AVERROR(EPIPE)).
BadFileDescriptor
An invalid file descriptor was used (AVERROR(EBADF)).
NotImplemented
The functionality or output format is not supported by the linked
FFmpeg build (AVERROR(ENOSYS)).
OperationNotPermitted
The operation was not permitted (AVERROR(EPERM)).
PermissionDenied
Permission was denied (AVERROR(EACCES)).
Timeout
The operation timed out (AVERROR(ETIMEDOUT)).
UnknownError(i32)
Any other failure; the payload is the raw FFmpeg error code
(rendered with av_err2str in the message).
Trait Implementations§
Source§impl Debug for AllocOutputContextError
impl Debug for AllocOutputContextError
Source§impl Display for AllocOutputContextError
impl Display for AllocOutputContextError
Source§impl Error for AllocOutputContextError
impl Error for AllocOutputContextError
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
use the Display impl or to_string()