#[non_exhaustive]pub enum OpenInputError {
}Expand description
Errors from opening an input file, stream, device, or custom input
source. Most variants are mapped from the FFmpeg error code returned by
avformat_open_input.
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, URL, or device 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 input format is not supported by the linked
FFmpeg build (AVERROR(ENOSYS)).
OperationNotPermitted
The operation was not permitted (AVERROR(EPERM)).
InvalidData
The file or stream contains invalid or corrupted data
(AVERROR_INVALIDDATA).
Timeout
The connection timed out (AVERROR(ETIMEDOUT)).
InvalidOption(String)
A builder option carried an invalid value (e.g. a non-positive
set_framerate, a non-finite set_ts_scale, 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.
UnknownError(i32)
Any other failure; the payload is the raw FFmpeg error code
(rendered with av_err2str in the message).
InvalidSource
Returned when the input has no usable source: neither a URL nor a custom read callback was configured.
InvalidFormat(String)
Returned when the explicitly requested input format name is unknown to FFmpeg; the payload is the requested name.
SeekFunctionMissing
Returned when the input requires seeking but the custom input source provides no seek callback.
Trait Implementations§
Source§impl Debug for OpenInputError
impl Debug for OpenInputError
Source§impl Display for OpenInputError
impl Display for OpenInputError
Source§impl Error for OpenInputError
impl Error for OpenInputError
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()