pub enum AudioSampleError {
Conversion(ConversionError),
Parameter(ParameterError),
Layout(LayoutError),
Processing(ProcessingError),
Feature(FeatureError),
}Expand description
Main error type for audio sample operations.
This is the root error type that encompasses all possible failures in audio processing operations. It’s designed as a hierarchy to allow both generic error handling and specific error inspection.
§Feature-gated variants
Some variants only exist when the corresponding cargo feature is enabled
(e.g. Plotting requires feature = "plotting").
Variants§
Conversion(ConversionError)
Errors related to type conversions and casting operations.
Parameter(ParameterError)
Errors related to invalid parameters or configuration.
Layout(LayoutError)
Errors related to memory layout, array structure, or data organization.
Processing(ProcessingError)
Errors that occur during audio processing operations.
Feature(FeatureError)
Errors related to missing or disabled features.
Trait Implementations§
Source§impl Clone for AudioSampleError
impl Clone for AudioSampleError
Source§fn clone(&self) -> AudioSampleError
fn clone(&self) -> AudioSampleError
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 AudioSampleError
impl Debug for AudioSampleError
Source§impl Display for AudioSampleError
impl Display for AudioSampleError
Source§impl Error for AudioSampleError
impl Error for AudioSampleError
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<ConversionError> for AudioSampleError
impl From<ConversionError> for AudioSampleError
Source§fn from(source: ConversionError) -> Self
fn from(source: ConversionError) -> Self
Converts to this type from the input type.
Source§impl From<FeatureError> for AudioSampleError
impl From<FeatureError> for AudioSampleError
Source§fn from(source: FeatureError) -> Self
fn from(source: FeatureError) -> Self
Converts to this type from the input type.
Source§impl From<LayoutError> for AudioSampleError
impl From<LayoutError> for AudioSampleError
Source§fn from(source: LayoutError) -> Self
fn from(source: LayoutError) -> Self
Converts to this type from the input type.
Source§impl From<ParameterError> for AudioSampleError
impl From<ParameterError> for AudioSampleError
Source§fn from(source: ParameterError) -> Self
fn from(source: ParameterError) -> Self
Converts to this type from the input type.
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.
Source§impl From<ShapeError> for AudioSampleError
impl From<ShapeError> for AudioSampleError
Source§fn from(err: ShapeError) -> Self
fn from(err: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AudioSampleError
impl RefUnwindSafe for AudioSampleError
impl Send for AudioSampleError
impl Sync for AudioSampleError
impl Unpin for AudioSampleError
impl UnwindSafe for AudioSampleError
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