#[non_exhaustive]pub enum PcmError {
UnsupportedSampleRate(u32),
EncodingMismatch,
}Expand description
A typed PCM-boundary refusal.
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.
UnsupportedSampleRate(u32)
The rate is zero or beyond the supported conversion bound.
EncodingMismatch
The format’s depth does not match the owned sample variant.
Trait Implementations§
Source§impl Error for PcmError
impl Error for PcmError
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()
impl Copy for PcmError
impl Eq for PcmError
impl StructuralPartialEq for PcmError
Auto Trait Implementations§
impl Freeze for PcmError
impl RefUnwindSafe for PcmError
impl Send for PcmError
impl Sync for PcmError
impl Unpin for PcmError
impl UnsafeUnpin for PcmError
impl UnwindSafe for PcmError
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