pub enum Error {
Moq(Error),
Decode(DecodeError),
Json(Arc<Error>),
DuplicateTrack,
MissingTrack,
InvalidSession,
EmptyGroup,
InvalidCodec,
InvalidFrame,
UnsupportedCodec,
ExpectedInt(ParseIntError),
Hex(FromHexError),
}
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§
Moq(Error)
An error from the underlying MoQ transport layer.
Decode(DecodeError)
Failed to decode a message at the MoQ transport layer.
Json(Arc<Error>)
JSON serialization/deserialization error.
DuplicateTrack
Attempted to add a track that already exists in the catalog.
MissingTrack
Referenced track was not found in the catalog.
InvalidSession
The provided session ID is invalid or malformed.
EmptyGroup
Attempted to process an empty group (no frames).
InvalidCodec
The specified codec is invalid or malformed.
InvalidFrame
The frame data is invalid or corrupted.
UnsupportedCodec
The codec is not supported by this implementation.
ExpectedInt(ParseIntError)
Failed to parse an integer value.
Hex(FromHexError)
Failed to decode hexadecimal data.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more