#[non_exhaustive]pub enum ConfigError {
ZeroSampleRate,
ZeroChannels,
SampleRateTooLow,
InvalidFrames,
HopTooShort,
InvalidThreshold,
InvalidLengths,
InvalidRatio,
InvalidWeights,
InvalidScoreFrames,
InvalidValue,
FrameCountMismatch,
}Expand description
A configuration or input that cannot produce an analysis or a plan.
Errors are raised only while building configurations and analyses. Analysis and planning themselves never fail: constraints that cannot be met are reported as flags on the result.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ZeroSampleRate
The sample rate is zero.
ZeroChannels
The channel count is zero.
SampleRateTooLow
The sample rate leaves no room for the 80 Hz detection high-pass filter.
InvalidFrames
The hop is zero, the window is shorter than the hop, or the hop is too long.
HopTooShort
The hop rounds to zero samples at this sample rate.
InvalidThreshold
A threshold is not finite, or a relative threshold is negative.
InvalidLengths
The lengths are not 0 <= min <= target <= max with a non-zero target.
InvalidRatio
A placement ratio is outside 0.0..=1.0.
InvalidWeights
A cost weight is negative or not finite, the per-cut cost is not positive, or the pause reference is zero.
InvalidScoreFrames
The score rate or score hop is zero, or a score frame is shorter than one sample.
InvalidValue
A score is outside 0.0..=1.0 or not finite, a level is not finite, or scores carry
digital-zero marks.
FrameCountMismatch
The number of frames does not cover the stated audio length.
Trait Implementations§
Source§impl Clone for ConfigError
impl Clone for ConfigError
impl Copy for ConfigError
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
impl Eq for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
1.30.0 · 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()