pub enum SoundCoreError {
InvalidFrequency,
InvalidAmplitude,
InvalidPhase,
InvalidPartialTag,
InvalidSustain,
InvalidDuration,
EmptyPartials,
InvalidStretch,
}Expand description
Error raised when sound primitives are constructed with invalid values.
Variants§
InvalidFrequency
A frequency was zero, negative, or non-finite.
InvalidAmplitude
An amplitude was negative or non-finite.
InvalidPhase
A phase was non-finite.
InvalidPartialTag
A partial tag carried an invalid kind/index combination.
InvalidSustain
An envelope sustain level fell outside the 0.0..=1.0 range.
InvalidDuration
A tone duration was zero.
EmptyPartials
A tone was built without any partials.
InvalidStretch
A time-stretch factor was zero, negative, or non-finite.
Trait Implementations§
Source§impl Clone for SoundCoreError
impl Clone for SoundCoreError
Source§fn clone(&self) -> SoundCoreError
fn clone(&self) -> SoundCoreError
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 SoundCoreError
impl Debug for SoundCoreError
Source§impl Display for SoundCoreError
impl Display for SoundCoreError
Source§impl Error for SoundCoreError
impl Error for SoundCoreError
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 SoundCoreError
impl PartialEq for SoundCoreError
impl StructuralPartialEq for SoundCoreError
Auto Trait Implementations§
impl Freeze for SoundCoreError
impl RefUnwindSafe for SoundCoreError
impl Send for SoundCoreError
impl Sync for SoundCoreError
impl Unpin for SoundCoreError
impl UnsafeUnpin for SoundCoreError
impl UnwindSafe for SoundCoreError
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