pub struct BufferPoolConfig(/* private fields */);

Methods from Deref<Target = BufferPoolConfigRef>§

source

pub fn as_ptr(&self) -> *const GstStructure

source

pub fn as_mut_ptr(&self) -> *mut GstStructure

source

pub fn add_option(&mut self, option: &str)

source

pub fn has_option(&self, option: &str) -> bool

source

pub fn options(&self) -> Vec<String>

source

pub fn set_params( &mut self, caps: Option<&Caps>, size: u32, min_buffers: u32, max_buffers: u32 )

source

pub fn params(&self) -> Option<(Option<Caps>, u32, u32, u32)>

source

pub fn validate_params( &self, caps: Option<&Caps>, size: u32, min_buffers: u32, max_buffers: u32 ) -> Result<(), BoolError>

source

pub fn allocator(&self) -> Option<(Option<Allocator>, AllocationParams)>

source

pub fn set_allocator( &self, allocator: Option<&Allocator>, params: Option<&AllocationParams> )

Methods from Deref<Target = StructureRef>§

source

pub fn as_ptr(&self) -> *const GstStructure

source

pub fn as_mut_ptr(&self) -> *mut GstStructure

source

pub fn get<'a, T: FromValue<'a>>( &'a self, name: impl IntoGStr ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>

source

pub fn get_optional<'a, T: FromValue<'a>>( &'a self, name: impl IntoGStr ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>

source

pub fn value( &self, name: impl IntoGStr ) -> Result<&SendValue, GetError<Infallible>>

source

pub fn get_by_quark<'a, T: FromValue<'a>>( &'a self, name: Quark ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>

source

pub fn get_optional_by_quark<'a, T: FromValue<'a>>( &'a self, name: Quark ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>

source

pub fn value_by_quark( &self, name: Quark ) -> Result<&SendValue, GetError<Infallible>>

source

pub fn set(&mut self, name: impl IntoGStr, value: impl Into<Value> + Send)

source

pub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)

source

pub fn set_by_quark(&mut self, name: Quark, value: impl Into<Value> + Send)

source

pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)

source

pub fn name<'a>(&self) -> &'a GStr

source

pub fn name_quark(&self) -> Quark

source

pub fn set_name(&mut self, name: impl IntoGStr)

source

pub fn has_name(&self, name: &str) -> bool

source

pub fn has_field(&self, field: impl IntoGStr) -> bool

source

pub fn has_field_with_type(&self, field: impl IntoGStr, type_: Type) -> bool

source

pub fn has_field_by_quark(&self, field: Quark) -> bool

source

pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool

source

pub fn remove_field(&mut self, field: impl IntoGStr)

source

pub fn remove_fields(&mut self, fields: impl IntoIterator<Item = impl IntoGStr>)

source

pub fn remove_all_fields(&mut self)

source

pub fn fields(&self) -> FieldIterator<'_>

source

pub fn iter(&self) -> Iter<'_>

source

pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a GStr>

source

pub fn n_fields(&self) -> u32

source

pub fn can_intersect(&self, other: &StructureRef) -> bool

source

pub fn intersect(&self, other: &StructureRef) -> Option<Structure>

source

pub fn is_subset(&self, superset: &StructureRef) -> bool

source

pub fn fixate(&mut self)

source

pub fn fixate_field(&mut self, name: impl IntoGStr) -> bool

source

pub fn fixate_field_bool(&mut self, name: impl IntoGStr, target: bool) -> bool

source

pub fn fixate_field_str( &mut self, name: impl IntoGStr, target: impl IntoGStr ) -> bool

source

pub fn fixate_field_nearest_double( &mut self, name: impl IntoGStr, target: f64 ) -> bool

source

pub fn fixate_field_nearest_fraction( &mut self, name: impl IntoGStr, target: impl Into<Fraction> ) -> bool

source

pub fn fixate_field_nearest_int( &mut self, name: impl IntoGStr, target: i32 ) -> bool

source

pub fn serialize(&self, flags: SerializeFlags) -> GString

source

pub fn serialize_strict( &self, flags: SerializeFlags ) -> Result<GString, BoolError>

source

pub fn foreach<F: FnMut(Quark, &Value) -> ControlFlow<()>>( &self, func: F ) -> bool

source

pub fn map_in_place<F: FnMut(Quark, &mut Value) -> ControlFlow<()>>( &mut self, func: F ) -> bool

source

pub fn filter_map_in_place<F: FnMut(Quark, Value) -> Option<Value>>( &mut self, func: F )

Trait Implementations§

source§

impl AsMut<BufferPoolConfigRef> for BufferPoolConfig

source§

fn as_mut(&mut self) -> &mut BufferPoolConfigRef

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<BufferPoolConfigRef> for BufferPoolConfig

source§

fn as_ref(&self) -> &BufferPoolConfigRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for BufferPoolConfig

source§

fn clone(&self) -> BufferPoolConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BufferPoolConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for BufferPoolConfig

§

type Target = BufferPoolConfigRef

The resulting type after dereferencing.
source§

fn deref(&self) -> &BufferPoolConfigRef

Dereferences the value.
source§

impl DerefMut for BufferPoolConfig

source§

fn deref_mut(&mut self) -> &mut BufferPoolConfigRef

Mutably dereferences the value.
source§

impl PartialEq for BufferPoolConfig

source§

fn eq(&self, other: &BufferPoolConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for BufferPoolConfig

source§

impl StructuralPartialEq for BufferPoolConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.