#[non_exhaustive]pub enum ResampleError {
Rubato(ResampleError),
Construction(ResamplerConstructionError),
UnalignedBuffer {
samples: usize,
channels: usize,
},
}Available on crate feature
resampler only.Expand description
Errors produced by the resampler.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rubato(ResampleError)
rubato reported a conversion error.
Construction(ResamplerConstructionError)
Construction of the resampler failed.
UnalignedBuffer
The input buffer was not a whole multiple of the channel count.
Trait Implementations§
Source§impl Debug for ResampleError
impl Debug for ResampleError
Source§impl Display for ResampleError
impl Display for ResampleError
Source§impl Error for ResampleError
impl Error for ResampleError
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<ResampleError> for ResampleError
impl From<ResampleError> for ResampleError
Source§fn from(e: ResampleError) -> Self
fn from(e: ResampleError) -> Self
Converts to this type from the input type.
Source§impl From<ResamplerConstructionError> for ResampleError
impl From<ResamplerConstructionError> for ResampleError
Source§fn from(e: ResamplerConstructionError) -> Self
fn from(e: ResamplerConstructionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResampleError
impl RefUnwindSafe for ResampleError
impl Send for ResampleError
impl Sync for ResampleError
impl Unpin for ResampleError
impl UnsafeUnpin for ResampleError
impl UnwindSafe for ResampleError
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