pub enum PpsdError {
EmptyResponse,
UnsupportedStage {
stage: u32,
detail: String,
},
MissingDecimation(u32),
InvalidSampleRate(u32),
}Expand description
Errors that can occur during PSD computation.
Variants§
EmptyResponse
Response has no stages to evaluate.
UnsupportedStage
Unsupported transfer function type encountered.
MissingDecimation(u32)
A digital stage has no decimation info (needed for DTFT sample rate).
InvalidSampleRate(u32)
A digital stage has a non-positive or NaN sample rate.
Guards against silent NaN propagation through the DTFT inner loop, which
would otherwise occur when input_sample_rate is 0.0, negative, or NaN
(f / 0.0 = ±Inf, cos/sin(±Inf) = NaN).
Trait Implementations§
Source§impl Error for PpsdError
impl Error for PpsdError
1.30.0 · 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 PpsdError
impl RefUnwindSafe for PpsdError
impl Send for PpsdError
impl Sync for PpsdError
impl Unpin for PpsdError
impl UnsafeUnpin for PpsdError
impl UnwindSafe for PpsdError
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