pub enum ProcessError {
Processing(String),
Parameter(String),
Buffer(String),
TypeMismatch {
expected: &'static str,
got: &'static str,
},
SampleRateMismatch {
expected: f32,
got: f32,
},
Config(String),
NotInitialized,
AlreadyInitialized,
Unsupported(String),
Timeout,
RealtimeViolation(String),
Internal(String),
}Expand description
Main error type for signal processing operations
This error can occur during node processing, parameter changes, or any other operation in the signal graph.
Variants§
Processing(String)
Error during signal processing
Parameter(String)
Error with a parameter (invalid value, out of range, etc.)
Buffer(String)
Buffer operation failed
TypeMismatch
Type mismatch (e.g., trying to connect signal to control)
SampleRateMismatch
Sample rate mismatch
Config(String)
Configuration error
NotInitialized
Not initialized
AlreadyInitialized
Already initialized
Unsupported(String)
Unsupported operation
Timeout
Timeout occurred
RealtimeViolation(String)
Real-time violation — operation exceeded its time budget or performed an illegal action (allocation, blocking, etc.)
Internal(String)
Internal error (for implementation-specific errors)
Implementations§
Source§impl ProcessError
impl ProcessError
Sourcepub fn processing(msg: impl Into<String>) -> Self
pub fn processing(msg: impl Into<String>) -> Self
Create a new processing error with a formatted message
Sourcepub fn parameter(msg: impl Into<String>) -> Self
pub fn parameter(msg: impl Into<String>) -> Self
Create a new parameter error with a formatted message
Sourcepub fn type_mismatch(expected: &'static str, got: &'static str) -> Self
pub fn type_mismatch(expected: &'static str, got: &'static str) -> Self
Create a new type mismatch error
Sourcepub fn sample_rate_mismatch(expected: f32, got: f32) -> Self
pub fn sample_rate_mismatch(expected: f32, got: f32) -> Self
Create a new sample rate mismatch error
Sourcepub fn unsupported(msg: impl Into<String>) -> Self
pub fn unsupported(msg: impl Into<String>) -> Self
Create a new unsupported operation error
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if this error is recoverable
Recoverable errors are those that don’t require stopping the signal thread, such as temporary buffer underflows or parameter errors.
Trait Implementations§
Source§impl Clone for ProcessError
impl Clone for ProcessError
Source§fn clone(&self) -> ProcessError
fn clone(&self) -> ProcessError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProcessError
impl Debug for ProcessError
Source§impl Display for ProcessError
impl Display for ProcessError
Source§impl Error for ProcessError
impl Error for ProcessError
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()