pub enum EngineError {
UnsupportedResamplingRate {
position: u32,
role: String,
actual_hz: u32,
},
Input(String),
MeasurementSampleRate {
position: u32,
role: String,
actual_hz: u32,
expected_hz: u32,
},
InvalidMeasurement {
position: u32,
role: String,
},
DuplicateMeasurement {
position: u32,
role: String,
},
MissingReferencePosition {
position: u32,
},
MissingMainMeasurement {
position: u32,
},
Dsp(DspError),
Cancelled,
}Expand description
Why a design cannot be computed. Messages are for logs; the service maps variants to user-facing error codes.
Variants§
UnsupportedResamplingRate
Resampling was requested for a rate outside the converter’s bounds.
Input(String)
An input failure without a structured measurement diagnostic.
MeasurementSampleRate
A channel’s measurement does not use the engine sample rate.
InvalidMeasurement
An IR is empty, or its samples/time origin contain a nonfinite value.
DuplicateMeasurement
A position contains two measurements assigned to the same role.
MissingReferencePosition
The configured reference position has no measurements.
MissingMainMeasurement
The reference position has no measurement of a configured main speaker.
Dsp(DspError)
A DSP primitive rejected its arguments.
Cancelled
The computation was cancelled.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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()
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more