pub struct AudioConverterConfig(Structure);
Tuple Fields§
§0: Structure
Implementations§
source§impl AudioConverterConfig
impl AudioConverterConfig
pub fn new() -> Self
pub fn set_dither_method(&mut self, v: AudioDitherMethod)
pub fn dither_method(&self) -> AudioDitherMethod
pub fn set_noise_shaping_method(&mut self, v: AudioNoiseShapingMethod)
pub fn noise_shaping_method(&self) -> AudioNoiseShapingMethod
pub fn set_quantization(&mut self, v: u32)
pub fn quantization(&self) -> u32
pub fn set_resampler_method(&mut self, v: AudioResamplerMethod)
pub fn resampler_method(&self) -> AudioResamplerMethod
pub fn set_mix_matrix(&mut self, v: &[impl AsRef<[f32]>])
pub fn mix_matrix(&self) -> Vec<Vec<f32>>
Methods from Deref<Target = StructureRef>§
pub fn as_ptr(&self) -> *const GstStructure
pub fn as_mut_ptr(&self) -> *mut GstStructure
pub fn get<'a, T>(
&'a self,
name: impl IntoGStr,
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional<'a, T>(
&'a self,
name: impl IntoGStr,
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value( &self, name: impl IntoGStr, ) -> Result<&SendValue, GetError<Infallible>>
pub fn get_by_quark<'a, T>(
&'a self,
name: Quark,
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional_by_quark<'a, T>(
&'a self,
name: Quark,
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value_by_quark( &self, name: Quark, ) -> Result<&SendValue, GetError<Infallible>>
pub fn set(&mut self, name: impl IntoGStr, value: impl Into<Value> + Send)
pub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)
pub fn set_by_quark(&mut self, name: Quark, value: impl Into<Value> + Send)
pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)
pub fn name<'a>(&self) -> &'a GStr
pub fn name_quark(&self) -> Quark
pub fn set_name(&mut self, name: impl IntoGStr)
pub fn has_name(&self, name: &str) -> bool
pub fn has_field(&self, field: impl IntoGStr) -> bool
pub fn has_field_with_type(&self, field: impl IntoGStr, type_: Type) -> bool
pub fn has_field_by_quark(&self, field: Quark) -> bool
pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool
pub fn remove_field(&mut self, field: impl IntoGStr)
pub fn remove_fields(&mut self, fields: impl IntoIterator<Item = impl IntoGStr>)
pub fn remove_all_fields(&mut self)
pub fn fields(&self) -> FieldIterator<'_>
pub fn iter(&self) -> Iter<'_>
pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a GStr>
pub fn n_fields(&self) -> u32
pub fn can_intersect(&self, other: &StructureRef) -> bool
pub fn intersect(&self, other: &StructureRef) -> Option<Structure>
pub fn is_subset(&self, superset: &StructureRef) -> bool
pub fn fixate(&mut self)
pub fn fixate_field(&mut self, name: impl IntoGStr) -> bool
pub fn fixate_field_bool(&mut self, name: impl IntoGStr, target: bool) -> bool
pub fn fixate_field_str( &mut self, name: impl IntoGStr, target: impl IntoGStr, ) -> bool
pub fn fixate_field_nearest_double( &mut self, name: impl IntoGStr, target: f64, ) -> bool
pub fn fixate_field_nearest_fraction( &mut self, name: impl IntoGStr, target: impl Into<Fraction>, ) -> bool
pub fn fixate_field_nearest_int( &mut self, name: impl IntoGStr, target: i32, ) -> bool
pub fn foreach<F>(&self, func: F) -> bool
pub fn map_in_place<F>(&mut self, func: F) -> bool
pub fn filter_map_in_place<F>(&mut self, func: F)
Trait Implementations§
source§impl AsMut<StructureRef> for AudioConverterConfig
impl AsMut<StructureRef> for AudioConverterConfig
source§fn as_mut(&mut self) -> &mut StructureRef
fn as_mut(&mut self) -> &mut StructureRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<StructureRef> for AudioConverterConfig
impl AsRef<StructureRef> for AudioConverterConfig
source§fn as_ref(&self) -> &StructureRef
fn as_ref(&self) -> &StructureRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for AudioConverterConfig
impl Clone for AudioConverterConfig
source§fn clone(&self) -> AudioConverterConfig
fn clone(&self) -> AudioConverterConfig
Returns a copy 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 AudioConverterConfig
impl Debug for AudioConverterConfig
source§impl Default for AudioConverterConfig
impl Default for AudioConverterConfig
source§impl Deref for AudioConverterConfig
impl Deref for AudioConverterConfig
source§type Target = StructureRef
type Target = StructureRef
The resulting type after dereferencing.
source§fn deref(&self) -> &StructureRef
fn deref(&self) -> &StructureRef
Dereferences the value.
source§impl DerefMut for AudioConverterConfig
impl DerefMut for AudioConverterConfig
source§fn deref_mut(&mut self) -> &mut StructureRef
fn deref_mut(&mut self) -> &mut StructureRef
Mutably dereferences the value.
source§impl From<AudioConverterConfig> for Structure
impl From<AudioConverterConfig> for Structure
source§fn from(v: AudioConverterConfig) -> Self
fn from(v: AudioConverterConfig) -> Self
Converts to this type from the input type.
source§impl From<AudioConverterConfig> for Value
impl From<AudioConverterConfig> for Value
source§fn from(s: AudioConverterConfig) -> Value
fn from(s: AudioConverterConfig) -> Value
Converts to this type from the input type.
source§impl PartialEq for AudioConverterConfig
impl PartialEq for AudioConverterConfig
source§impl ToValue for AudioConverterConfig
impl ToValue for AudioConverterConfig
source§impl ToValueOptional for AudioConverterConfig
impl ToValueOptional for AudioConverterConfig
source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.source§impl<'a> TryFrom<&'a StructureRef> for AudioConverterConfig
impl<'a> TryFrom<&'a StructureRef> for AudioConverterConfig
source§impl TryFrom<Structure> for AudioConverterConfig
impl TryFrom<Structure> for AudioConverterConfig
impl Eq for AudioConverterConfig
impl StructuralPartialEq for AudioConverterConfig
Auto Trait Implementations§
impl Freeze for AudioConverterConfig
impl RefUnwindSafe for AudioConverterConfig
impl Send for AudioConverterConfig
impl Sync for AudioConverterConfig
impl Unpin for AudioConverterConfig
impl UnwindSafe for AudioConverterConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.