pub struct VolumeState {
pub db: f64,
pub fraction: f64,
pub muted: Option<bool>,
}Expand description
The DAC’s volume as read back from the device.
Fields§
§db: f64Level in dB.
fraction: f64Position on the 0..1 curve: 0 is the DAC’s minimum; anything above 0
spans max(min, -80 dB) to the maximum linearly in dB. A level below
-80 dB reads as 0.0 here but keeps its exact db.
muted: Option<bool>None when the DAC has no writable mute, or its readback failed.
Trait Implementations§
Source§impl Clone for VolumeState
impl Clone for VolumeState
impl Copy for VolumeState
Source§impl Debug for VolumeState
impl Debug for VolumeState
Source§impl PartialEq for VolumeState
impl PartialEq for VolumeState
impl StructuralPartialEq for VolumeState
Auto Trait Implementations§
impl Forget for VolumeState
impl Freeze for VolumeState
impl Move for VolumeState
impl RefUnwindSafe for VolumeState
impl Send for VolumeState
impl Sync for VolumeState
impl Unpin for VolumeState
impl UnsafeUnpin for VolumeState
impl UnwindSafe for VolumeState
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