Struct gstreamer::buffer_pool::BufferPoolConfig
source · #[repr(transparent)]pub struct BufferPoolConfig(Structure);
Tuple Fields§
§0: Structure
Methods from Deref<Target = BufferPoolConfigRef>§
pub fn as_ptr(&self) -> *const GstStructure
pub fn as_mut_ptr(&self) -> *mut GstStructure
pub fn add_option(&mut self, option: &str)
pub fn has_option(&self, option: &str) -> bool
pub fn options(&self) -> Vec<String>
pub fn set_params( &mut self, caps: Option<&Caps>, size: u32, min_buffers: u32, max_buffers: u32, )
pub fn params(&self) -> Option<(Option<Caps>, u32, u32, u32)>
pub fn validate_params( &self, caps: Option<&Caps>, size: u32, min_buffers: u32, max_buffers: u32, ) -> Result<(), BoolError>
pub fn allocator(&self) -> Option<(Option<Allocator>, AllocationParams)>
pub fn set_allocator( &self, allocator: Option<&Allocator>, params: Option<&AllocationParams>, )
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: FromValue<'a>>( &'a self, name: impl IntoGStr, ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
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>>
pub fn value( &self, name: impl IntoGStr, ) -> Result<&SendValue, GetError<Infallible>>
pub fn get_by_quark<'a, T: FromValue<'a>>( &'a self, name: Quark, ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
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>>
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: FnMut(Quark, &Value) -> ControlFlow<()>>( &self, func: F, ) -> bool
pub fn map_in_place<F: FnMut(Quark, &mut Value) -> ControlFlow<()>>( &mut self, func: F, ) -> bool
pub fn filter_map_in_place<F: FnMut(Quark, Value) -> Option<Value>>( &mut self, func: F, )
Trait Implementations§
source§impl AsMut<BufferPoolConfigRef> for BufferPoolConfig
impl AsMut<BufferPoolConfigRef> for BufferPoolConfig
source§fn as_mut(&mut self) -> &mut BufferPoolConfigRef
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
impl AsRef<BufferPoolConfigRef> for BufferPoolConfig
source§fn as_ref(&self) -> &BufferPoolConfigRef
fn as_ref(&self) -> &BufferPoolConfigRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for BufferPoolConfig
impl Clone for BufferPoolConfig
source§fn clone(&self) -> BufferPoolConfig
fn clone(&self) -> BufferPoolConfig
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 BufferPoolConfig
impl Debug for BufferPoolConfig
source§impl Deref for BufferPoolConfig
impl Deref for BufferPoolConfig
source§type Target = BufferPoolConfigRef
type Target = BufferPoolConfigRef
The resulting type after dereferencing.
source§fn deref(&self) -> &BufferPoolConfigRef
fn deref(&self) -> &BufferPoolConfigRef
Dereferences the value.
source§impl DerefMut for BufferPoolConfig
impl DerefMut for BufferPoolConfig
source§fn deref_mut(&mut self) -> &mut BufferPoolConfigRef
fn deref_mut(&mut self) -> &mut BufferPoolConfigRef
Mutably dereferences the value.
source§impl PartialEq for BufferPoolConfig
impl PartialEq for BufferPoolConfig
impl Eq for BufferPoolConfig
impl StructuralPartialEq for BufferPoolConfig
Auto Trait Implementations§
impl Freeze for BufferPoolConfig
impl RefUnwindSafe for BufferPoolConfig
impl Send for BufferPoolConfig
impl Sync for BufferPoolConfig
impl Unpin for BufferPoolConfig
impl UnwindSafe for BufferPoolConfig
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> 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 more