pub enum BargeInAction {
None,
Duck(f32),
Interrupt,
Restore,
}Expand description
Result of a barge-in check.
Variants§
None
No barge-in — continue normal operation.
Duck(f32)
Duck audio volume — tentative barge-in detected.
The f32 is the volume multiplier (0.0 = silent, 1.0 = full).
Interrupt
Barge-in detected — flush buffer and signal server.
Restore
Restore audio volume — false positive resolved.
Trait Implementations§
Source§impl Clone for BargeInAction
impl Clone for BargeInAction
Source§fn clone(&self) -> BargeInAction
fn clone(&self) -> BargeInAction
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 BargeInAction
impl Debug for BargeInAction
Source§impl PartialEq for BargeInAction
impl PartialEq for BargeInAction
impl Copy for BargeInAction
impl StructuralPartialEq for BargeInAction
Auto Trait Implementations§
impl Freeze for BargeInAction
impl RefUnwindSafe for BargeInAction
impl Send for BargeInAction
impl Sync for BargeInAction
impl Unpin for BargeInAction
impl UnwindSafe for BargeInAction
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