pub enum Error {
Show 19 variants
Closed,
Moq(Error),
Url(ParseError),
Utf8(Utf8Error),
Connect(Arc<Error>),
InvalidPointer,
InvalidId,
NotFound,
UnknownFormat(String),
InitFailed(Arc<Error>),
DecodeFailed(Arc<Error>),
TimestampOverflow(TimestampOverflow),
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§
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.
UnknownFormat(String)
Unknown media format specified.
InitFailed(Arc<Error>)
Media decoder initialization failed.
DecodeFailed(Arc<Error>)
Media frame decode failed.
TimestampOverflow(TimestampOverflow)
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: 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
Converts to this type from the input type.
Source§impl From<ParseLevelError> for Error
impl From<ParseLevelError> for Error
Source§fn from(err: ParseLevelError) -> Self
fn from(err: ParseLevelError) -> Self
Converts to this type from the input type.
Source§impl From<TimestampOverflow> for Error
impl From<TimestampOverflow> for Error
Source§fn from(source: TimestampOverflow) -> Self
fn from(source: TimestampOverflow) -> 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§
§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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
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.