#[non_exhaustive]pub enum MoqError {
Show 19 variants
Protocol(Error),
Media(Error),
Mux(Error),
Audio(AudioError),
Url(ParseError),
TimeOverflow(TimeOverflow),
LogLevel(ParseLevelError),
Task(JoinError),
Cancelled,
Closed,
Connect(String),
Bind(String),
Reject(String),
AlreadyResponded,
Codec(String),
InvalidErrorCode(i32),
Unauthorized,
Forbidden,
Log(String),
}Expand description
Error returned by all UniFFI-exported functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Protocol(Error)
Media(Error)
Mux(Error)
Audio(AudioError)
Url(ParseError)
TimeOverflow(TimeOverflow)
LogLevel(ParseLevelError)
Task(JoinError)
Cancelled
Closed
Connect(String)
Bind(String)
Reject(String)
AlreadyResponded
Codec(String)
InvalidErrorCode(i32)
Forbidden
Log(String)
Trait Implementations§
Source§impl<UT> ConvertError<UT> for MoqError
impl<UT> ConvertError<UT> for MoqError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Error for MoqError
impl Error for MoqError
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<AudioError> for MoqError
impl From<AudioError> for MoqError
Source§fn from(source: AudioError) -> Self
fn from(source: AudioError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for MoqError
impl From<ParseError> for MoqError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseLevelError> for MoqError
impl From<ParseLevelError> for MoqError
Source§fn from(source: ParseLevelError) -> Self
fn from(source: ParseLevelError) -> Self
Converts to this type from the input type.
Source§impl From<TimeOverflow> for MoqError
impl From<TimeOverflow> for MoqError
Source§fn from(source: TimeOverflow) -> Self
fn from(source: TimeOverflow) -> Self
Converts to this type from the input type.
Source§impl<UT> Lift<UT> for MoqError
impl<UT> Lift<UT> for MoqError
type FfiType = RustBuffer
fn try_read(buf: &mut &[u8]) -> Result<Self>
fn try_lift(v: RustBuffer) -> Result<Self>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
Source§impl<UT> Lower<UT> for MoqError
impl<UT> Lower<UT> for MoqError
type FfiType = RustBuffer
fn write(obj: Self, buf: &mut Vec<u8>)
fn lower(obj: Self) -> RustBuffer
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Source§impl<UT> LowerError<UT> for MoqError
impl<UT> LowerError<UT> for MoqError
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MoqError
impl !UnwindSafe for MoqError
impl Freeze for MoqError
impl Send for MoqError
impl Sync for MoqError
impl Unpin for MoqError
impl UnsafeUnpin for MoqError
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