pub enum VuMeterError {
NegativeLevel(f32),
Clipping(f32),
Stale {
last_update_ms: u64,
current_ms: u64,
},
SlowUpdateRate {
measured_hz: f32,
expected_hz: f32,
},
NotAnimating {
sample_count: usize,
value: f32,
},
}Expand description
VU meter validation error
Variants§
NegativeLevel(f32)
Level is negative
Clipping(f32)
Level exceeds maximum (clipping)
Stale
Updates are stale
SlowUpdateRate
Update rate too slow
NotAnimating
Constant value detected (not animating)
Trait Implementations§
Source§impl Clone for VuMeterError
impl Clone for VuMeterError
Source§fn clone(&self) -> VuMeterError
fn clone(&self) -> VuMeterError
Returns a duplicate of the value. Read more
1.0.0 · 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 VuMeterError
impl Debug for VuMeterError
Source§impl Display for VuMeterError
impl Display for VuMeterError
Source§impl Error for VuMeterError
impl Error for VuMeterError
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()
Auto Trait Implementations§
impl Freeze for VuMeterError
impl RefUnwindSafe for VuMeterError
impl Send for VuMeterError
impl Sync for VuMeterError
impl Unpin for VuMeterError
impl UnsafeUnpin for VuMeterError
impl UnwindSafe for VuMeterError
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