pub enum ProcessingError {
MathematicalFailure {
operation: String,
reason: String,
},
AlgorithmFailure {
algorithm: String,
reason: String,
},
InsufficientData {
operation: String,
reason: String,
},
ConvergenceFailure {
algorithm: String,
iterations: u32,
},
ExternalDependency {
dependency: String,
operation: String,
reason: String,
},
}Expand description
Errors that occur during audio processing operations.
This covers failures in DSP algorithms, mathematical operations, and other processing-specific issues that don’t fit into other categories.
Variants§
MathematicalFailure
A mathematical operation failed due to invalid input or numerical issues.
Fields
AlgorithmFailure
An audio processing algorithm encountered an error during execution.
Fields
InsufficientData
The operation failed due to insufficient data or resources.
Fields
ConvergenceFailure
A convergence-based algorithm failed to converge within limits.
Fields
ExternalDependency
An external dependency or resource required for processing is unavailable.
Implementations§
Source§impl ProcessingError
impl ProcessingError
Sourcepub fn algorithm_failure<A, R>(algorithm: A, reason: R) -> Self
pub fn algorithm_failure<A, R>(algorithm: A, reason: R) -> Self
Create a new algorithm failure error.
Trait Implementations§
Source§impl Clone for ProcessingError
impl Clone for ProcessingError
Source§fn clone(&self) -> ProcessingError
fn clone(&self) -> ProcessingError
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 ProcessingError
impl Debug for ProcessingError
Source§impl Display for ProcessingError
impl Display for ProcessingError
Source§impl Error for ProcessingError
impl Error for ProcessingError
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 From<&str> for ProcessingError
impl From<&str> for ProcessingError
Source§impl From<ProcessingError> for AudioSampleError
impl From<ProcessingError> for AudioSampleError
Source§fn from(source: ProcessingError) -> Self
fn from(source: ProcessingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcessingError
impl RefUnwindSafe for ProcessingError
impl Send for ProcessingError
impl Sync for ProcessingError
impl Unpin for ProcessingError
impl UnwindSafe for ProcessingError
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