#[non_exhaustive]pub enum Error {
NoEncoder(String),
NoDecoder(String),
UnsupportedCodec(String),
Unsupported(String),
InvalidFramerate(u32),
BitrateUnsupported(&'static str),
Codec(Error),
Mux(Error),
Net(Error),
TimeOverflow(TimeOverflow),
}Expand description
Errors returned by moq-video.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoEncoder(String)
No encoder matching the requested codec / hardware preference could be opened (none compiled in, or none available on this machine).
NoDecoder(String)
No decoder matching the requested codec / hardware preference could be opened (none compiled in, or none available on this machine).
UnsupportedCodec(String)
A track’s codec is not supported by the native decoders.
Unsupported(String)
The requested capture source or enumeration has no implementation on this platform (the message names what is missing).
InvalidFramerate(u32)
The configured framerate was zero (would divide by zero / produce a degenerate codec time base).
BitrateUnsupported(&'static str)
This encoder can’t change its bitrate once open, so it can’t follow a congestion-control estimate. Encoding continues at the configured rate.
Codec(Error)
Capture / encode / codec failure (the message carries the detail).
Mux(Error)
moq-mux muxer/catalog error.
Net(Error)
moq-net transport error.
TimeOverflow(TimeOverflow)
Timestamp overflow converting to the moq microsecond timescale.
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()