#[non_exhaustive]pub enum Error {
Show 27 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),
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.
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()
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<ParseLevelError> for Error
impl From<ParseLevelError> for Error
Source§fn from(err: ParseLevelError) -> Self
fn from(err: ParseLevelError) -> Self
Source§impl From<TimeOverflow> for Error
impl From<TimeOverflow> for Error
Source§fn from(source: TimeOverflow) -> Self
fn from(source: TimeOverflow) -> 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.