#[non_exhaustive]pub enum Error {
Unimplemented(&'static str),
Eof,
Again,
InvalidData(String),
Unsupported(String),
DecoderNotFound(CodecId),
EncoderNotFound(CodecId),
MuxerNotFound(String),
DemuxerNotFound(String),
Option(String),
Io(Error),
}Expand description
Errors produced anywhere in the pipeline.
The Again and Eof variants intentionally mirror FFmpeg’s EAGAIN /
AVERROR_EOF control-flow signals from the send/receive codec API: they are
not “failures” so much as “ask again later” / “stream is finished”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unimplemented(&'static str)
A code path that is scaffolded but not yet implemented. Carries a short static label so logs point straight at the missing piece.
Eof
End of stream — a demuxer or decoder has no more data to give.
Again
More input is required before output can be produced (codec drain/fill).
InvalidData(String)
The input bytes were malformed for the expected format/codec.
Unsupported(String)
A requested capability exists in concept but isn’t supported here.
DecoderNotFound(CodecId)
No registered decoder could handle this codec.
EncoderNotFound(CodecId)
No registered encoder could handle this codec.
MuxerNotFound(String)
No registered muxer matched the requested container name/extension.
DemuxerNotFound(String)
No registered demuxer could probe/handle the input.
Option(String)
A passed option was not recognised or had an invalid value.
Io(Error)
Underlying I/O failure.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()