#[non_exhaustive]pub enum WriteHeaderError {
OutOfMemory,
InvalidArgument,
NotFound,
IOError,
PipeError,
BadFileDescriptor,
NotImplemented,
OperationNotPermitted,
PermissionDenied,
Timeout,
UnknownError(i32),
}Expand description
Errors from writing the output container header
(avformat_write_header), carried by
MuxingOperationError::WriteHeader.
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 WriteHeaderError
impl Debug for WriteHeaderError
Source§impl Display for WriteHeaderError
impl Display for WriteHeaderError
Source§impl Error for WriteHeaderError
impl Error for WriteHeaderError
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()