pub enum Volume {
Muted,
DeciBel(f32),
}
Expand description
The volume of an audio channel.
Variants§
Muted
The channel is muted.
DeciBel(f32)
The channel volume in dB. Ranges from MIN_VOLUME_DB
(quietest) to MAX_VOLUME_DB
(loudest).
Trait Implementations§
impl Copy for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
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