pub enum PlayerError {
RateMismatch {
waveform: u32,
sink: u32,
},
UnsupportedChannels {
waveform: u16,
sink: u16,
},
}Expand description
Why a waveform cannot be played on a sink.
Variants§
RateMismatch
The waveform and the sink run at different sample rates. Resampling is not part of the player.
UnsupportedChannels
There is no mapping from the waveform’s channel count to the sink’s.
Trait Implementations§
Source§impl Clone for PlayerError
impl Clone for PlayerError
impl Copy for PlayerError
Source§impl Debug for PlayerError
impl Debug for PlayerError
Source§impl Display for PlayerError
impl Display for PlayerError
impl Eq for PlayerError
Source§impl Error for PlayerError
impl Error for PlayerError
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 PlayerError
impl PartialEq for PlayerError
impl StructuralPartialEq for PlayerError
Auto Trait Implementations§
impl Forget for PlayerError
impl Freeze for PlayerError
impl Move for PlayerError
impl RefUnwindSafe for PlayerError
impl Send for PlayerError
impl Sync for PlayerError
impl Unpin for PlayerError
impl UnsafeUnpin for PlayerError
impl UnwindSafe for PlayerError
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