pub enum CloseVolume {
Restore,
Keep,
Forget,
}Expand description
What Dac::close_with does with the level the DAC
had before the library first changed it, decided at close rather than at
open.
HandBack is fixed in the DacConfig when the DAC opens. A host that
only learns at the end what happens next (Android’s own driver gets the DAC,
the host takes it straight back, the DAC was unplugged) closes with this.
Variants§
Restore
Write the recorded original level back, verify it, and end the record.
Keep
Leave the DAC at its current level and keep the record, so a later
Dac::open of the same device in this process still
knows the true original level.
Forget
End the record without touching the DAC: it is gone, so a later attachment of the same device starts with a fresh record.
Trait Implementations§
Source§impl Clone for CloseVolume
impl Clone for CloseVolume
impl Copy for CloseVolume
Source§impl Debug for CloseVolume
impl Debug for CloseVolume
impl Eq for CloseVolume
Source§impl PartialEq for CloseVolume
impl PartialEq for CloseVolume
impl StructuralPartialEq for CloseVolume
Auto Trait Implementations§
impl Forget for CloseVolume
impl Freeze for CloseVolume
impl Move for CloseVolume
impl RefUnwindSafe for CloseVolume
impl Send for CloseVolume
impl Sync for CloseVolume
impl Unpin for CloseVolume
impl UnsafeUnpin for CloseVolume
impl UnwindSafe for CloseVolume
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