#[non_exhaustive]pub enum Error {
Show 16 variants
Moq(Error),
Json(String),
DuplicateRendition(String),
UnsupportedVersion(u64),
EscapingBroadcast(String),
InvalidCodec,
ExpectedInt(ParseIntError),
TimestampOverflow(TimeOverflow),
Duplicate(String),
InvalidTimescale(u64),
InvalidWall(u64),
InvalidVideoRotation,
InvalidFieldOfView(f64),
InvalidAmbisonicChannels(u32),
Zero(&'static str),
ReservedSection(String),
}Expand description
Error types for the hang media library.
This enum represents all possible errors that can occur when working with hang media streams, codecs, and containers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Moq(Error)
An error from the underlying MoQ transport layer.
Json(String)
JSON serialization/deserialization error.
DuplicateRendition(String)
A catalog uses one rendition ID for both a video and an audio rendition.
UnsupportedVersion(u64)
A catalog needs a newer moq-hang draft than this reader implements.
EscapingBroadcast(String)
A catalog broadcast reference escapes its root.
InvalidCodec
The specified codec is invalid or malformed.
ExpectedInt(ParseIntError)
Failed to parse an integer value.
TimestampOverflow(TimeOverflow)
The timestamp is too large.
Duplicate(String)
A track with this name already exists in the catalog.
InvalidTimescale(u64)
A catalog timescale is zero, so no timestamp can be expressed in it.
InvalidWall(u64)
A catalog wall-clock value is outside the JSON-safe integer range.
InvalidVideoRotation
The shared video rotation is not a finite number.
InvalidFieldOfView(f64)
An equirectangular video’s field of view is outside (0, 360] degrees.
InvalidAmbisonicChannels(u32)
An ambisonic audio rendition’s channel count is not a square of at least 4.
Zero(&'static str)
A catalog field that counts something is zero, such as a picture dimension or sample rate.
ReservedSection(String)
An application catalog section’s name collides with a member either catalog reserves.
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()