#[non_exhaustive]pub enum Error {
Show 28 variants
Closed,
Moq(Error),
Url(ParseError),
Utf8(Utf8Error),
Connect(Arc<Error>),
InvalidPointer,
InvalidId,
NotFound,
SessionNotFound,
OriginNotFound,
AnnouncementNotFound,
BroadcastNotFound,
CatalogNotFound,
MediaNotFound,
TrackNotFound,
FrameNotFound,
UnknownFormat(String),
InitFailed(Arc<Error>),
DecodeFailed(Arc<Error>),
TimestampOverflow(TimeOverflow),
Level(Arc<ParseLevelError>),
InvalidCode,
Panic,
Offline,
Hang(Error),
Mux(Arc<Error>),
NoIndex,
NulError(NulError),
}Expand description
Error types that can occur in the FFI layer.
Each error variant maps to a specific negative error code returned to C callers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Closed
Resource was closed.
Moq(Error)
Error from the underlying MoQ protocol layer.
Url(ParseError)
URL parsing error.
Utf8(Utf8Error)
UTF-8 string validation error.
Connect(Arc<Error>)
Connection establishment error.
InvalidPointer
Null or invalid pointer passed from C.
InvalidId
Invalid resource ID.
NotFound
Resource not found.
SessionNotFound
Session task not found.
OriginNotFound
Origin producer not found.
AnnouncementNotFound
Announcement not found.
BroadcastNotFound
Broadcast not found.
CatalogNotFound
Catalog not found.
MediaNotFound
Media decoder not found.
TrackNotFound
Track task not found.
FrameNotFound
Frame not found.
UnknownFormat(String)
Unknown media format specified.
InitFailed(Arc<Error>)
Media decoder initialization failed.
DecodeFailed(Arc<Error>)
Media frame decode failed.
TimestampOverflow(TimeOverflow)
Timestamp value overflow.
Level(Arc<ParseLevelError>)
Log level parsing error.
InvalidCode
Invalid error code conversion.
Panic
Panic occurred in Rust code.
Offline
Session is offline.
Hang(Error)
Error from the hang media layer.
Mux(Arc<Error>)
Error from the moq-mux consumer layer.
NoIndex
Index out of bounds.
NulError(NulError)
Null byte found in C 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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()