pub enum AudioVolumeError {
InvalidGain(f32),
InvalidGainDb(f32),
MissingChannels,
UnsupportedSampleFormat(Sample),
InvalidPlaneSize {
plane: usize,
required: usize,
actual: usize,
},
UnsupportedBuffer(&'static str),
}Expand description
Errors specific to AudioVolume.
Variants§
InvalidGain(f32)
InvalidGainDb(f32)
MissingChannels
UnsupportedSampleFormat(Sample)
InvalidPlaneSize
UnsupportedBuffer(&'static str)
Trait Implementations§
Source§impl Debug for AudioVolumeError
impl Debug for AudioVolumeError
Source§impl Display for AudioVolumeError
impl Display for AudioVolumeError
Source§impl Error for AudioVolumeError
impl Error for AudioVolumeError
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 From<AudioVolumeError> for Error
impl From<AudioVolumeError> for Error
Source§fn from(source: AudioVolumeError) -> Self
fn from(source: AudioVolumeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AudioVolumeError
impl PartialEq for AudioVolumeError
impl StructuralPartialEq for AudioVolumeError
Auto Trait Implementations§
impl Freeze for AudioVolumeError
impl RefUnwindSafe for AudioVolumeError
impl Send for AudioVolumeError
impl Sync for AudioVolumeError
impl Unpin for AudioVolumeError
impl UnsafeUnpin for AudioVolumeError
impl UnwindSafe for AudioVolumeError
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