Enum webrtc_media::track::setting::audio::AutoGainControl
source · pub enum AutoGainControl {
Off,
On,
}
Expand description
Automatic gain control is often desirable on the input signal recorded by the microphone.
There are cases where it is not needed and it is desirable to turn it off so that the audio is not altered. This allows applications to control this behavior.
Specification
Variants
Off
On
Trait Implementations
sourceimpl Clone for AutoGainControl
impl Clone for AutoGainControl
sourcefn clone(&self) -> AutoGainControl
fn clone(&self) -> AutoGainControl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AutoGainControl
impl Debug for AutoGainControl
sourceimpl From<bool> for AutoGainControl
impl From<bool> for AutoGainControl
sourceimpl Ord for AutoGainControl
impl Ord for AutoGainControl
sourcefn cmp(&self, other: &AutoGainControl) -> Ordering
fn cmp(&self, other: &AutoGainControl) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AutoGainControl> for AutoGainControl
impl PartialEq<AutoGainControl> for AutoGainControl
sourcefn eq(&self, other: &AutoGainControl) -> bool
fn eq(&self, other: &AutoGainControl) -> bool
sourceimpl PartialOrd<AutoGainControl> for AutoGainControl
impl PartialOrd<AutoGainControl> for AutoGainControl
sourcefn partial_cmp(&self, other: &AutoGainControl) -> Option<Ordering>
fn partial_cmp(&self, other: &AutoGainControl) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AutoGainControl
impl Eq for AutoGainControl
impl StructuralEq for AutoGainControl
impl StructuralPartialEq for AutoGainControl
Auto Trait Implementations
impl RefUnwindSafe for AutoGainControl
impl Send for AutoGainControl
impl Sync for AutoGainControl
impl Unpin for AutoGainControl
impl UnwindSafe for AutoGainControl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more