#[non_exhaustive]pub enum Error {
NoSource,
SourceDimensions(String),
Net(Error),
Mux(Error),
Hang(Error),
Video(Error),
TimeOverflow(TimeOverflow),
Scale(String),
}Expand description
Errors returned by moq-transcode.
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.
NoSource
The source catalog has no rendition the transcoder can decode: it needs an H.264, H.265, or AV1 rendition local to the source broadcast.
SourceDimensions(String)
The chosen source rendition doesn’t declare coded dimensions, so rungs can’t be sized or gated against it.
Net(Error)
moq-net transport error.
Mux(Error)
moq-mux container/catalog error.
Hang(Error)
hang catalog/container error.
Video(Error)
Video decode/encode error.
TimeOverflow(TimeOverflow)
Timestamp overflow converting to the moq microsecond timescale.
Scale(String)
Frame scaling failure.
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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TimeOverflow> for Error
impl From<TimeOverflow> for Error
Source§fn from(source: TimeOverflow) -> Self
fn from(source: TimeOverflow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more