pub enum ResampleError {
InvalidFormat,
InvalidPolicy,
MisalignedBuffer,
InputLimit {
supplied: usize,
maximum: usize,
},
OutputTooSmall {
required: usize,
available: usize,
},
TimeOverflow,
}Expand description
Invalid construction or bounded callback request from a resampler.
Variants§
InvalidFormat
A sample rate or channel count was zero.
InvalidPolicy
The coefficient-bank policy was outside its finite supported range.
MisalignedBuffer
Input or output samples did not form whole interleaved frames.
InputLimit
One callback input exceeded the predeclared frame bound.
Fields
OutputTooSmall
Caller output storage cannot hold every output implied by this input.
Fields
TimeOverflow
Long-running rational time arithmetic exceeded its representable range.
Trait Implementations§
Source§impl Clone for ResampleError
impl Clone for ResampleError
Source§fn clone(&self) -> ResampleError
fn clone(&self) -> ResampleError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResampleError
impl Debug for ResampleError
Source§impl Display for ResampleError
impl Display for ResampleError
impl Eq 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 PartialEq for ResampleError
impl PartialEq for ResampleError
impl StructuralPartialEq for ResampleError
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