#[non_exhaustive]pub enum Error {
Show 26 variants
Moq(Error),
Hang(Error),
Json(Error),
Cmaf(Error),
Mkv(Error),
Msf(Error),
Loc(Error),
Annexb(Error),
Aac(Error),
Opus(Error),
Flac(Error),
Mp3(Error),
H264(Error),
H265(Error),
Av1(Error),
Vp8(Error),
Vp9(Error),
Legacy(Error),
TimestampOverflow(TimeOverflow),
Mp4(Arc<Error>),
Io(Arc<Error>),
Url(ParseError),
UnknownFormat(String),
MissingKeyframe(MissingKeyframe),
Other(Arc<Error>),
ReservedSection(String),
}Expand description
Errors from moq-mux operations.
Most variants are delegations to underlying layers — moq_net::Error for
transport / pub-sub failures, hang::Error for catalog/codec parsing, the
per-format Errors for container shape problems, and the per-codec Errors for
bitstream parsing problems.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Moq(Error)
Error from the underlying moq-net transport.
Hang(Error)
Error from the hang catalog/codec layer.
Json(Error)
Error publishing or consuming JSON over a track.
Cmaf(Error)
Error parsing or building CMAF moof+mdat fragments.
Mkv(Error)
Error parsing or building MKV / WebM streams.
Msf(Error)
Error decoding the MSF catalog.
Loc(Error)
Error parsing or building LOC frames.
Annexb(Error)
Error parsing an Annex B NAL stream.
Aac(Error)
Error parsing AAC.
Opus(Error)
Error parsing Opus.
Flac(Error)
Error parsing FLAC.
Mp3(Error)
Error parsing MP3.
H264(Error)
Error parsing H.264.
H265(Error)
Error parsing H.265.
Av1(Error)
Error parsing AV1.
Vp8(Error)
Error parsing VP8.
Vp9(Error)
Error parsing VP9.
Legacy(Error)
Error parsing legacy audio (MP2 / AC-3 / E-AC-3).
TimestampOverflow(TimeOverflow)
Timestamp overflow when converting between timescales.
Mp4(Arc<Error>)
Error decoding or encoding an mp4 atom.
Io(Arc<Error>)
I/O error.
Url(ParseError)
URL parse error.
UnknownFormat(String)
Unknown media format.
MissingKeyframe(MissingKeyframe)
A non-keyframe frame was received before any keyframe opened a group. A track joining mid-stream should skip frames until the first keyframe.
Other(Arc<Error>)
Error from a muxer/demuxer that reports via anyhow (currently MPEG-TS).
Boxed in an Arc so the enum stays Clone (anyhow::Error is not).
ReservedSection(String)
Tried to set an application catalog section whose name collides with a
reserved media section (video/audio).
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()