pub enum AudioError {
InvalidSampleRate,
InvalidDuration,
InvalidFrequencyRange,
BufferSizeMismatch,
InsufficientData,
FftError,
}Expand description
Audio processing errors.
Variants§
InvalidSampleRate
Sample rate must be positive and finite.
InvalidDuration
Duration must be positive and finite.
InvalidFrequencyRange
Frequency range is invalid (e.g., start >= end, or out of Nyquist bounds).
BufferSizeMismatch
Input buffer sizes do not match expected dimensions.
InsufficientData
Not enough data provided for the requested operation.
FftError
An error occurred during FFT processing.
Trait Implementations§
Source§impl Clone for AudioError
impl Clone for AudioError
Source§fn clone(&self) -> AudioError
fn clone(&self) -> AudioError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioError
impl Debug for AudioError
Source§impl Display for AudioError
impl Display for AudioError
Source§impl Error for AudioError
Available on crate feature std only.
impl Error for AudioError
Available on crate feature
std only.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()
Source§impl PartialEq for AudioError
impl PartialEq for AudioError
impl StructuralPartialEq for AudioError
Auto Trait Implementations§
impl Freeze for AudioError
impl RefUnwindSafe for AudioError
impl Send for AudioError
impl Sync for AudioError
impl Unpin for AudioError
impl UnwindSafe 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