pub enum PcmConversionError {
InvalidChannels,
MatrixShape {
expected: usize,
actual: usize,
},
NonFiniteMatrix,
MisalignedInput,
NonFiniteSample {
index: usize,
},
FrameLimit {
supplied: usize,
maximum: usize,
},
InvalidDither,
SizeOverflow,
}Expand description
Invalid bounded channel mapping or PCM quantization request.
Variants§
InvalidChannels
Channel counts were zero or exceeded the fixed safety ceiling.
MatrixShape
Matrix storage did not match its declared channel shape.
Fields
NonFiniteMatrix
A channel gain was NaN or infinite.
MisalignedInput
Interleaved source samples ended before a complete frame.
NonFiniteSample
A source sample was NaN or infinite.
FrameLimit
Input exceeded the caller-declared work bound.
InvalidDither
A noise-shaping coefficient was outside its stable supported range.
SizeOverflow
Output-size or report arithmetic overflowed.
Trait Implementations§
Source§impl Clone for PcmConversionError
impl Clone for PcmConversionError
Source§fn clone(&self) -> PcmConversionError
fn clone(&self) -> PcmConversionError
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 PcmConversionError
impl Debug for PcmConversionError
Source§impl Display for PcmConversionError
impl Display for PcmConversionError
impl Eq for PcmConversionError
Source§impl Error for PcmConversionError
impl Error for PcmConversionError
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 PcmConversionError
impl PartialEq for PcmConversionError
impl StructuralPartialEq for PcmConversionError
Auto Trait Implementations§
impl Freeze for PcmConversionError
impl RefUnwindSafe for PcmConversionError
impl Send for PcmConversionError
impl Sync for PcmConversionError
impl Unpin for PcmConversionError
impl UnsafeUnpin for PcmConversionError
impl UnwindSafe for PcmConversionError
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