pub enum AudioFocus {
Gained,
Ducked,
LostTransient,
Lost,
}Expand description
What the rest of the device is doing with the output.
Variants§
Gained
This app may be heard at its own volume.
Ducked
Something short is being said over the top — a navigation prompt.
Playback continues at DUCKED_GAIN.
LostTransient
Something else has the output for a moment — a call, another player.
Playback pauses and resumes on the next Gained.
Lost
Something else has the output for good. Playback stops and does not come back on its own.
Trait Implementations§
Source§impl Clone for AudioFocus
impl Clone for AudioFocus
impl Copy for AudioFocus
Source§impl Debug for AudioFocus
impl Debug for AudioFocus
Source§impl Default for AudioFocus
impl Default for AudioFocus
impl Eq for AudioFocus
Source§impl PartialEq for AudioFocus
impl PartialEq for AudioFocus
impl StructuralPartialEq for AudioFocus
Auto Trait Implementations§
impl Freeze for AudioFocus
impl RefUnwindSafe for AudioFocus
impl Send for AudioFocus
impl Sync for AudioFocus
impl Unpin for AudioFocus
impl UnsafeUnpin for AudioFocus
impl UnwindSafe for AudioFocus
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