pub enum Error {
Show 18 variants
Moq(Error),
Decode(DecodeError),
Json(Arc<Error>),
DuplicateTrack,
MissingTrack,
InvalidSession,
EmptyGroup,
InvalidCodec,
InvalidFrame,
UnsupportedCodec,
ExpectedInt(ParseIntError),
Hex(FromHexError),
TimestampOverflow(TimestampOverflow),
MissingKeyframe,
TimestampBackwards,
Http(Arc<Error>),
Url(ParseError),
UnknownFormat(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§
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.
TimestampOverflow(TimestampOverflow)
The timestamp is too large.
MissingKeyframe
The track must start with a keyframe.
TimestampBackwards
The timestamp of each keyframe must be monotonically increasing.
Http(Arc<Error>)
An error from the HTTP client.
Url(ParseError)
Failed to parse a URL.
UnknownFormat(String)
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§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Source§impl From<TimestampOverflow> for Error
impl From<TimestampOverflow> for Error
Source§fn from(source: TimestampOverflow) -> Self
fn from(source: TimestampOverflow) -> Self
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.