#[non_exhaustive]pub enum AudioError {
Unsupported(String),
Misaligned {
got: usize,
expected: usize,
},
ResamplerConstruction(ResamplerConstructionError),
Resample(ResampleError),
Hang(Error),
Mux(Error),
Moq(Error),
TimeOverflow(TimeOverflow),
}Expand description
Errors returned by moq-audio.
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.
Unsupported(String)
The codec does not support this sample rate / channel combination.
Misaligned
The input buffer was not aligned to the codec’s frame size.
ResamplerConstruction(ResamplerConstructionError)
Rubato resampler construction error.
Resample(ResampleError)
Rubato resampler runtime error.
Hang(Error)
hang catalog error.
Mux(Error)
moq-mux container/transport error.
Moq(Error)
moq-net transport error.
TimeOverflow(TimeOverflow)
Timestamp overflow.
Trait Implementations§
Source§impl Debug for AudioError
impl Debug for AudioError
Source§impl Display for AudioError
impl Display for AudioError
Source§impl Error for AudioError
impl Error for AudioError
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<Error> for AudioError
impl From<Error> for AudioError
Source§impl From<Error> for AudioError
impl From<Error> for AudioError
Source§impl From<Error> for AudioError
impl From<Error> for AudioError
Source§impl From<ResampleError> for AudioError
impl From<ResampleError> for AudioError
Source§fn from(source: ResampleError) -> Self
fn from(source: ResampleError) -> Self
Converts to this type from the input type.
Source§impl From<ResamplerConstructionError> for AudioError
impl From<ResamplerConstructionError> for AudioError
Source§fn from(source: ResamplerConstructionError) -> Self
fn from(source: ResamplerConstructionError) -> Self
Converts to this type from the input type.
Source§impl From<TimeOverflow> for AudioError
impl From<TimeOverflow> for AudioError
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 AudioError
impl !UnwindSafe for AudioError
impl Freeze for AudioError
impl Send for AudioError
impl Sync for AudioError
impl Unpin for AudioError
impl UnsafeUnpin for AudioError
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