pub enum ResamplerError {
InvalidFormat {
format: AudioFormat,
},
MisalignedSamples {
samples: usize,
channels: u16,
},
Resampling(String),
}Expand description
Why an audio chunk could not be converted by a Resampler.
Variants§
InvalidFormat
A sample rate or channel count was zero.
Fields
§
format: AudioFormatThe unusable format.
MisalignedSamples
An interleaved buffer did not contain whole audio frames.
Fields
Resampling(String)
A resampling implementation rejected an operation.
Trait Implementations§
Source§impl Clone for ResamplerError
impl Clone for ResamplerError
Source§fn clone(&self) -> ResamplerError
fn clone(&self) -> ResamplerError
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 ResamplerError
impl Debug for ResamplerError
Source§impl Display for ResamplerError
impl Display for ResamplerError
impl Eq for ResamplerError
Source§impl Error for ResamplerError
impl Error for ResamplerError
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 ResamplerError
impl PartialEq for ResamplerError
impl StructuralPartialEq for ResamplerError
Auto Trait Implementations§
impl Freeze for ResamplerError
impl RefUnwindSafe for ResamplerError
impl Send for ResamplerError
impl Sync for ResamplerError
impl Unpin for ResamplerError
impl UnsafeUnpin for ResamplerError
impl UnwindSafe for ResamplerError
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